fix(unittest): correctly order arguments

See #45
This commit is contained in:
Rónán Carrigan
2023-02-17 08:10:03 +00:00
parent dc36e8a857
commit 75fdeb460d

View File

@@ -93,7 +93,7 @@ class UnittestNeotestAdapter(NeotestAdapter):
sys.path.insert(0, os.getcwd()) sys.path.insert(0, os.getcwd())
# Prepend an executable name which is just used in output # Prepend an executable name which is just used in output
argv = ["neotest-python"] + args[:-1] + self.id_to_unittest_args(args[-1]) argv = ["neotest-python"] + self.id_to_unittest_args(args[-1]) + args[:-1]
unittest.main( unittest.main(
module=None, module=None,
argv=argv, argv=argv,