Skip to content

Commit

Permalink
more weird failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Dec 12, 2023
1 parent 0aefbbf commit b06a87a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions glia/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def show_pkg(package):
@glia.command(help="Test mechanisms")
@click.argument("mechanisms", nargs=-1)
def test(mechanisms, verbose=False):
print("BUT WE SHOULD GET MECHANISMS???", mechanisms)
if len(mechanisms) == 0:
mechanisms = _manager.resolver.index.keys()
successes = 0
Expand Down
5 changes: 1 addition & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ def test_glia(self):
@_shared.skipParallel
@_shared.skipUnlessTestMods
def test_compile(self):
# todo: test this test
result = run_cli_command(["compile"])
self.assertEqual(0, result.exit_code)
self.assertRegex(result.output, r"(\d+) out of (\1) passed")

@_shared.skipParallel
@_shared.skipIfInstalled()
def test_compile_nopkg(self):
# todo: test this test
result = run_cli_command(["compile"])
self.assertEqual(0, result.exit_code)
self.assertRegex(result.output, r"0 out of 0 passed")
Expand All @@ -64,7 +62,6 @@ def test_list(self):

@_shared.skipUnlessTestMods
def test_show(self):
# todo: test this test
result = run_cli_command(["show", "AMPA"])
self.assertEqual(0, result.exit_code)

Expand All @@ -90,7 +87,7 @@ def test_test(self):

@_shared.skipUnlessTestMods
def test_test_unknown(self):
result = run_cli_command(["test", "unknown"])
result = run_cli_command(["test", "unknown"], xfail=True)
self.assertIn("[?] unknown", result.output)
self.assertEqual(1, result.exit_code)

Expand Down

0 comments on commit b06a87a

Please sign in to comment.