Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate test failure #20

Open
betsybookwyrm opened this issue May 23, 2024 · 0 comments
Open

Investigate test failure #20

betsybookwyrm opened this issue May 23, 2024 · 0 comments

Comments

@betsybookwyrm
Copy link
Contributor

https://github.com/QUT-Digital-Observatory/twittersphere/actions/runs/9201275693/job/25309202243#step:4:120 and reproduced locally.

Error message:

tmp_path = PosixPath('/tmp/pytest-of-betsy/pytest-0/test_prepare_filter_db0')

    def test_prepare_filter_db(tmp_path):
    
        target_db = tmp_path / "test.db"
    
        runner = CliRunner()
    
        result = runner.invoke(
            cli.twittersphere,
            [
                "prepare",
                str(data_path / "test_sample.json"),
                str(data_path / "test_search_recent.json"),
                str(data_path / "test_hydrated_profiles.json"),
                str(target_db),
            ],
        )
>       assert result.exit_code == 0
E       assert 2 == 0
E        +  where 2 = <Result SystemExit(2)>.exit_code

tests/test_end_to_end.py:39: AssertionError

There are also some black failures, probably due to an update in black rules since the last time the tests were run.

Recommend updating dependencies first #19 in case there's something in there that's breaking things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant