From 75fdeb460d107bc70cbfbfd77ca9c046fc1f858e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Fri, 17 Feb 2023 08:10:03 +0000 Subject: [PATCH] fix(unittest): correctly order arguments See #45 --- neotest_python/unittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neotest_python/unittest.py b/neotest_python/unittest.py index 0aa9979..b1901a9 100644 --- a/neotest_python/unittest.py +++ b/neotest_python/unittest.py @@ -91,9 +91,9 @@ class UnittestNeotestAdapter(NeotestAdapter): # Make sure we can import relative to current path sys.path.insert(0, os.getcwd()) - + # 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( module=None, argv=argv,