-
Notifications
You must be signed in to change notification settings - Fork 165
Conversation
1783bff
to
d78ce6e
Compare
ace6908
to
fc49e8e
Compare
83ecf60
to
7b07109
Compare
85cd96c
to
69fb25b
Compare
5fc5269
to
6e715b9
Compare
6e715b9
to
308fb1a
Compare
@@ -4,5 +4,5 @@ | |||
|
|||
|
|||
@pytest.fixture(scope="session") |
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.
is this suppose to be session still?
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.
yes. I have to get rid of session scoped fixtures which use appliance. the rest can be left as is.
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.
Looks good, one comment
@@ -4,5 +4,5 @@ | |||
|
|||
|
|||
@pytest.fixture(scope="session") | |||
def cfme_data(request): | |||
def cfme_data(): |
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.
Wow, I don't think we're actually using this anywhere.
logger.info("Pushed appliance {} on stack (was {} before) ".format( | ||
obj.hostname, was_before.hostname if was_before else 'empty')) | ||
logger.info(f"Pushed appliance {obj.hostname} on stack " | ||
f"(was {was_before.hostname if was_before else 'empty'} before)") |
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.
Almost breaking your own rules for f-strings ;)
there is a plan to implement appliance markers and generate appliances based on those markers. We should get rid of session scoped fixuters using appliance fixture. This PR is one of steps we have to undertake to achieve above. Adding hook registering and calling for the appliance stack, in order to call methods on appliances, whenever they're used for tests. Replaces previous session scoped fixtures that were modifying the appliance at the start of the session.
there is a plan to implement appliance markers and generate appliances based on those markers.
We should get rid of session scoped fixuters using appliance fixture. This PR is one of steps we have to undertake to achieve above.
based on #9638