[test] Add an announce for when `setup` is being ran for tests

pull/2/head
Daniel Van Der Maden 5 years ago
parent c636750e35
commit adfafe873d
  1. 1
      tests/cli-pyhmy/test_cli.py
  2. 1
      tests/util-pyhmy/test_util.py

@ -12,6 +12,7 @@ BINARY_FILE_PATH = f"{TEMP_DIR}/bin/cli_test_binary"
@pytest.fixture(scope="session", autouse=True)
def setup():
print(f"Running test set-up for {os.path.realpath(__file__)}")
shutil.rmtree(TEMP_DIR, ignore_errors=True)
os.makedirs(TEMP_DIR, exist_ok=True)
from pyhmy.util import download_cli

@ -14,6 +14,7 @@ TEMP_DIR = "/tmp/pyhmy-testing/test-util"
@pytest.fixture(scope="session", autouse=True)
def setup():
print(f"Running test set-up for {os.path.realpath(__file__)}")
shutil.rmtree(TEMP_DIR, ignore_errors=True)
os.makedirs(TEMP_DIR, exist_ok=True)

Loading…
Cancel
Save