-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix CLI tests #691
Conversation
model = model_constructor() | ||
assert isinstance(model, ribasim.Model) | ||
model.write(tmp_path / model_name) | ||
model.write(tmp_path) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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 😓
Follow up to #690