Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Feb 29, 2024
1 parent 85dc6d8 commit 1799729
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tag_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- master
paths:
- "src/besapi/__init__.py"
- "src/besapi/besapi.py"
# - ".github/workflows/tag_and_release.yaml"

jobs:
Expand Down
7 changes: 5 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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</URL>" in str(upload_result)
print(bigfix_cli.bes_conn.parse_upload_result_to_prefetch(upload_result))

if os.name == "nt":
Expand All @@ -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)

0 comments on commit 1799729

Please sign in to comment.