Skip to content

Commit

Permalink
try fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Willner committed Jan 23, 2022
1 parent 66bc266 commit 7b50030
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_things_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""Module documentation goes here."""

import io
import pathlib
import sys
import unittest

Expand All @@ -13,8 +12,7 @@
class ThingsCLICase(unittest.TestCase):
"""Class documentation goes here."""

path = pathlib.Path(__file__).parent.resolve()
things3_cli = cli.ThingsCLI(database=f"{path}/tests/main.sqlite")
things3_cli = cli.ThingsCLI(database="tests/main.sqlite")

def _test_main(self, args, expected):
new_out = io.StringIO()
Expand All @@ -32,7 +30,7 @@ def test_methods(self):
for command in parser._subparsers._actions[
1
].choices: # noqa # pylint: disable=protected-access
if command not in ["feedback", "search", "logtoday"]:
if command not in ["feedback", "search", "logtoday", "createdtoday"]:
args = parser.parse_args([command])
self._test_main(args, " ")
args = parser.parse_args(["-r", command])
Expand Down

0 comments on commit 7b50030

Please sign in to comment.