Skip to content

Commit

Permalink
fix(#12): removed unittest reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteUEM committed Jan 13, 2025
1 parent c997cd1 commit 8a11c5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-unittest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Unittest CommuniAPI
name: Python Tests CommuniAPI

on: [ push, pull_request ]

Expand Down Expand Up @@ -45,6 +45,6 @@ jobs:

- name: Run unittests
run: |
python -m unittest tests.test_communi_api
pytest tests/*
env:
POETRY_HOME: ${{ github.workspace }}/.poetry
4 changes: 3 additions & 1 deletion tests/test_communi_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
logging.config.dictConfig(config=logging_config)


class TestsCommuniApp(unittest.TestCase):
class TestsCommuniApp():
def setup_class(self) -> None:
"""Common setup with testing provides api connections."""
if "COMMUNI_TOKEN" in os.environ:
self.COMMUNI_TOKEN = os.environ["COMMUNI_TOKEN"]
self.COMMUNI_SERVER = os.environ["COMMUNI_SERVER"]
Expand Down Expand Up @@ -52,6 +53,7 @@ def setup_class(self) -> None:
def tearDown(self) -> None:
"""Destroy the session after test execution to avoid resource issues."""
self.api.session.close()
logger.debug("Finished Tests RUN")

def test_config(self) -> None:
"""Check that configuration exists."""
Expand Down

0 comments on commit 8a11c5e

Please sign in to comment.