Compare commits

...
2 Commits
Author SHA1 Message Date
bwallacee 477f0a06ff chore(trading): remove fixture usage 2024-02-26 13:16:01 +00:00
bwallacee beaed2e133 chore(trading): ci test 2024-02-26 11:04:26 +00:00
3 changed files with 5 additions and 5 deletions
@@ -235,7 +235,7 @@ def test_submit_stop_oco_market_order_pending(
"PendingOCO" "PendingOCO"
) )
@pytest.mark.usefixtures("page", "continuous_market", "auth", "risk_accepted") @pytest.mark.usefixtures("auth", "risk_accepted")
def test_submit_stop_oco_limit_order_pending( def test_submit_stop_oco_limit_order_pending(
continuous_market, vega: VegaServiceNull, page: Page continuous_market, vega: VegaServiceNull, page: Page
): ):
@@ -15,7 +15,7 @@ def vega(request):
request.addfinalizer(lambda: cleanup_container(vega_instance)) # Register the cleanup function request.addfinalizer(lambda: cleanup_container(vega_instance)) # Register the cleanup function
yield vega_instance yield vega_instance
#
@pytest.fixture(scope="module", autouse=True) @pytest.fixture(scope="module", autouse=True)
def markets(vega: VegaServiceNull): def markets(vega: VegaServiceNull):
market_1 = setup_continuous_market( market_1 = setup_continuous_market(
@@ -215,7 +215,7 @@ def markets(vega: VegaServiceNull):
side="SIDE_BUY", side="SIDE_BUY",
volume=10, volume=10,
price=60, price=60,
) )
vega.wait_fn(1) vega.wait_fn(1)
vega.wait_for_total_catchup() vega.wait_for_total_catchup()
@@ -119,7 +119,7 @@ def setup_market_and_referral_scheme(vega: VegaServiceNull, continuous_market: s
forward_time(vega) forward_time(vega)
@pytest.mark.usefixtures("page", "auth", "risk_accepted") @pytest.mark.usefixtures("auth", "risk_accepted")
def test_can_traverse_up_and_down_through_tiers(continuous_market, vega: VegaServiceNull, page: Page): def test_can_traverse_up_and_down_through_tiers(continuous_market, vega: VegaServiceNull, page: Page):
setup_market_and_referral_scheme(vega, continuous_market, page) setup_market_and_referral_scheme(vega, continuous_market, page)
change_keys(page, vega, PARTY_B.name) change_keys(page, vega, PARTY_B.name)
@@ -163,7 +163,7 @@ def test_can_traverse_up_and_down_through_tiers(continuous_market, vega: VegaSer
"1%", "1", "1%", "0", "1", "1")) "1%", "1", "1%", "0", "1", "1"))
@pytest.mark.usefixtures("page", "auth", "risk_accepted") @pytest.mark.usefixtures("auth", "risk_accepted")
def test_does_not_move_up_tiers_when_not_enough_epochs(continuous_market, vega: VegaServiceNull, page: Page): def test_does_not_move_up_tiers_when_not_enough_epochs(continuous_market, vega: VegaServiceNull, page: Page):
setup_market_and_referral_scheme(vega, continuous_market, page) setup_market_and_referral_scheme(vega, continuous_market, page)
change_keys(page, vega, PARTY_B.name) change_keys(page, vega, PARTY_B.name)