Skip to content

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

@rgildein

Description

@rgildein

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    
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions