use mock_cloud_server.clear()

pull/34/head
Max Erenberg 10 months ago
parent 89fa65261c
commit b02a78593b
  1. 5
      tests/ceo/cli/test_cloud.py

@ -1,5 +1,4 @@
from click.testing import CliRunner
import requests
from ...utils import gssapi_token_ctx
from ceo.cli import cli
@ -7,7 +6,7 @@ from ceo.cli import cli
def test_cloud_account_activate(cli_setup, mock_cloud_server, new_user, cfg):
base_domain = cfg.get('base_domain')
requests.post('http://localhost:8080/reset')
mock_cloud_server.clear()
runner = CliRunner()
with gssapi_token_ctx(new_user.uid):
@ -22,7 +21,7 @@ def test_cloud_account_activate(cli_setup, mock_cloud_server, new_user, cfg):
def test_cloud_accounts_purge(cli_setup, mock_cloud_server):
requests.post('http://localhost:8080/reset')
mock_cloud_server.clear()
runner = CliRunner()
result = runner.invoke(cli, ['cloud', 'accounts', 'purge'])

Loading…
Cancel
Save