Skip to content

Commit

Permalink
unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Nov 9, 2023
1 parent 52d826e commit 0c158ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions unittest_unicorn_fy.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def test_template(self):
self.assertEqual(str(self.unicorn_fy.binance_org_websocket(data)), asserted_result)

def test_with_context(self):
with UnicornFy as ufy:
self.assertString(ufy.get_version())
with UnicornFy() as ufy:
self.assertIsInstance(ufy.get_version(), str)

def tearDown(self):
del self.unicorn_fy
Expand Down

0 comments on commit 0c158ad

Please sign in to comment.