donnemartin / haxor-news

Browse Hacker News like a haxor: A Hacker News command line interface (CLI).
Other
3.98k stars 165 forks source link

Test failures on NixOS #128

Closed dotlambda closed 6 years ago

dotlambda commented 6 years ago

When I run the tests on NixOS, I get the following output:

test_cli (unittest.loader.ModuleImportFailure) ... ERROR
test_F10 (test_keys.KeysTest) ... ERROR
test_F2 (test_keys.KeysTest) ... ERROR
test_toolbar_off (test_toolbar.ToolbarTest) ... ERROR
test_toolbar_on (test_toolbar.ToolbarTest) ... ERROR
test_clear_item_cache (test_config.ConfigTest) ... ok
test_config (test_config.ConfigTest) ... ok
test_load_hiring_and_freelance_ids (test_config.ConfigTest) ... FAIL
test_load_hiring_and_freelance_ids_from_cache_or_defaults (test_config.ConfigTest) ... ok
test_load_hiring_and_freelance_ids_invalid_url (test_config.ConfigTest) ... ERROR
test_save_and_load_item_ids (test_config.ConfigTest) ... ERROR
test_view_comment_clear_cache (test_config.ConfigTest) ... ok
test_add_comment_pagination (test_haxor.HaxorTest) ... ERROR
test_exit_command (test_haxor.HaxorTest) ... ERROR
test_run_command (test_haxor.HaxorTest) ... ERROR
test_arg_freelance (test_completer.CompleterTest) ... ok
test_arg_hiring (test_completer.CompleterTest) ... ok
test_arg_limit (test_completer.CompleterTest) ... ok
test_arg_user (test_completer.CompleterTest) ... ok
test_arg_view (test_completer.CompleterTest) ... ok
test_blank (test_completer.CompleterTest) ... ok
test_command (test_completer.CompleterTest) ... ok
test_completing_option (test_completer.CompleterTest) ... ok
test_fuzzy (test_completer.CompleterTest) ... ok
test_multiple_options (test_completer.CompleterTest) ... ok
test_no_completions (test_completer.CompleterTest) ... ok
test_option_freelance (test_completer.CompleterTest) ... ok
test_option_hiring (test_completer.CompleterTest) ... ok
test_option_user (test_completer.CompleterTest) ... ok
test_option_view (test_completer.CompleterTest) ... ok
test_subcommand (test_completer.CompleterTest) ... ok
test_ask (test_hacker_news.HackerNewsTest) ... ok
test_best (test_hacker_news.HackerNewsTest) ... ok
test_format_comment (test_hacker_news.HackerNewsTest) ... ok
test_format_index_title (test_hacker_news.HackerNewsTest) ... ok
test_format_item (test_hacker_news.HackerNewsTest) ... ok
test_format_markdown (test_hacker_news.HackerNewsTest) ... ok
test_headlines_message (test_hacker_news.HackerNewsTest) ... ok
test_hiring_and_freelance (test_hacker_news.HackerNewsTest) ...

Do you know how to get unittest to print the errors and a stack trace?

@matthiasbeyer haxor-news is broken on unstable

matthiasbeyer commented 6 years ago

I'm on it.

matthiasbeyer commented 6 years ago

It is more complicated than I thought. I pushed a short-term fix (disabling the tests) in https://github.com/NixOS/nixpkgs/pull/35273 ... If someone can come up with a proper fix, that'd be great.

@donnemartin feel free to close this issue, as it does not belong into this repository at all. This is a nixos-specific problem and shouldn't concern you!

dotlambda commented 6 years ago

@matthiasbeyer How did you find out more details about the errors?

matthiasbeyer commented 6 years ago

@dotlambda With https://nixos.wiki/wiki/Create_and_debug_nix_packages

donnemartin commented 6 years ago

Closing as @matthiasbeyer suggested.