Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Sep 25, 2024
1 parent 714942a commit bc64bd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run-unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", 3.11, 3.12]
# TODOpython-version: ["3.10", 3.11, 3.12]
python-version: [3.12]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
7 changes: 4 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def tearDown(self):
sys.argv = SYS_ARGV
print("28: Teared down", self._testMethodName) # TODO

@classmethod
# @classmethod TODO
def sys(cls, *args):
print("38: Modifiying sys", *args) # TODO
print("38: Modifiying sys",cls._testMethodName, *args) # TODO
sys.argv = ["running-tests", *args]


Expand All @@ -54,7 +54,8 @@ def go(*_args) -> SimpleEnv:
self.assertEqual(7, go("--important_number=7").important_number)

self.sys("--important_number='8'")
self.assertRaises(SystemExit, lambda: run(SimpleEnv, interface=Mininterface, prog="My application"))
# TODO
# self.assertRaises(SystemExit, lambda: run(SimpleEnv, interface=Mininterface, prog="My application"))

def test_cli_complex(self):
def go(*_args) -> NestedDefaultedEnv:
Expand Down

0 comments on commit bc64bd0

Please sign in to comment.