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

The name of the generated model is never displayed. #122

Open
rgildein opened this issue Jan 11, 2024 · 0 comments
Open

The name of the generated model is never displayed. #122

rgildein opened this issue Jan 11, 2024 · 0 comments

Comments

@rgildein
Copy link
Contributor

I was running multiple functional tests using pytest-operator with --keep-models for debugging and after failure I was not able to know which model was actually used. I think it would be nice if pytest-operator can provide info with name of model, which will/was (depends when the info come) be used.

Something like this:

$ tox -e func -- -s -vv --keep-models --series focal            
func: commands[0]> pytest /home/rgildein/code/canonical/charm-apt-mirror/tests/functional -s -vv --keep-models --series focal
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.2.0 -- /home/rgildein/code/canonical/charm-apt-mirror/.tox/func/bin/python
cachedir: .tox/func/.pytest_cache                                                                        
rootdir: /home/rgildein/code/canonical/charm-apt-mirror                                                  
plugins: operator-0.28.0, asyncio-0.21.0                                                                 
asyncio: mode=Mode.STRICT
model: test-charm-xhs7                                                                                
collected 17 items    
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant