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

Review functional tests for specific errors #178

Open
RosCraddock opened this issue Oct 14, 2024 · 0 comments
Open

Review functional tests for specific errors #178

RosCraddock opened this issue Oct 14, 2024 · 0 comments

Comments

@RosCraddock
Copy link

Some functional tests have been developed to check if an error is outputted under certain conditions. For example, if the user inputs "UPG_1" as the main_metafounder. This will cause an error, exiting the program, and informing the user "Error: The main_metafounder must start with MF_." Currently, these functional tests only check the exit_code (2 or 512). Ideally, this will check the exact error message instead. Thus far, we have tried using subprocess, capsys(), and pytest.raises(<error_type>, match = "error message" but none has worked.

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