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

Fix CLI tests #691

Merged
merged 7 commits into from
Oct 23, 2023
Merged

Fix CLI tests #691

merged 7 commits into from
Oct 23, 2023

Conversation

Hofer-Julian
Copy link
Contributor

Follow up to #690

@Hofer-Julian Hofer-Julian marked this pull request as ready for review October 23, 2023 12:05
@Hofer-Julian Hofer-Julian requested a review from visr October 23, 2023 12:05
model = model_constructor()
assert isinstance(model, ribasim.Model)
model.write(tmp_path / model_name)
model.write(tmp_path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this the model folder name becomes a random tmp_path instead of the model name. That makes it hard to find the right model for manual inspection.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tmp_path isn't random.
It gets the name according to the test parameters

Copy link
Member

@visr visr Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to recognize the model name from the tmp_path, so does it put the constructor.__name__ in there? If so that would be great.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does on my machine.
But please, try it out yourself :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I couldn't afford to download new binaries over 4G to test 😓

@visr visr merged commit e105832 into main Oct 23, 2023
15 checks passed
@visr visr deleted the fix-cli-tests branch October 23, 2023 18:20
visr pushed a commit that referenced this pull request Oct 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants