From 179972925e3a73bed08d66522302919dcc392d8a Mon Sep 17 00:00:00 2001 From: jgstew Date: Thu, 29 Feb 2024 10:56:46 -0500 Subject: [PATCH] fix tests --- .github/workflows/tag_and_release.yaml | 1 + tests/tests.py | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tag_and_release.yaml b/.github/workflows/tag_and_release.yaml index 12b71ed..a7370be 100644 --- a/.github/workflows/tag_and_release.yaml +++ b/.github/workflows/tag_and_release.yaml @@ -7,6 +7,7 @@ on: - master paths: - "src/besapi/__init__.py" + - "src/besapi/besapi.py" # - ".github/workflows/tag_and_release.yaml" jobs: diff --git a/tests/tests.py b/tests/tests.py index a5e3def..17d7e04 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -25,7 +25,7 @@ import besapi -print("besapi version: " + str(besapi.__version__)) +print("besapi version: " + str(besapi.besapi.__version__)) assert 15 == len(besapi.besapi.rand_password(15)) @@ -124,7 +124,8 @@ class RequestResult(object): upload_result = bigfix_cli.bes_conn.upload( "./besapi/__init__.py", "test_besapi_upload.txt" ) - print(upload_result) + # print(upload_result) + assert "test_besapi_upload.txt" in str(upload_result) print(bigfix_cli.bes_conn.parse_upload_result_to_prefetch(upload_result)) if os.name == "nt": @@ -134,3 +135,5 @@ class RequestResult(object): ) bes_conn = besapi.besapi.get_bes_conn_using_config_file() print("login succeeded:", bes_conn.login()) + +sys.exit(0)