1717]
1818
1919
20- @fixture (scope = "module" , autouse = True )
20+ @mark .xdist_group (name = "usage_tracker" )
21+ @fixture (scope = "module" )
2122def create_cli_mock ():
2223 # Cleanup before starting
2324 rmtree (TEST_FOLDER , ignore_errors = True )
@@ -32,6 +33,7 @@ def create_cli_mock():
3233 rmtree (TEST_FOLDER )
3334
3435
36+ @mark .xdist_group (name = "usage_tracker" )
3537@fixture (scope = "module" )
3638def test_model ():
3739 with open (TEST_SCRIPT_MODEL ) as f :
@@ -45,6 +47,7 @@ def create_test_file(code: str, function_name: str, file_path: str):
4547 f .write (code )
4648
4749
50+ @mark .xdist_group (name = "usage_tracker" )
4851@mark .parametrize (
4952 "function,path,expected" ,
5053 [
@@ -66,7 +69,7 @@ def create_test_file(code: str, function_name: str, file_path: str):
6669 ("open" , "dbt/adapters/firebolt/connections.py" , "DBT/1.0.3" ),
6770 ],
6871)
69- def test_usage_detection (function , path , expected , test_model ):
72+ def test_usage_detection (function , path , expected , test_model , create_cli_mock ):
7073 test_path = TEST_FOLDER + path
7174 create_test_file (test_model , function , test_path )
7275 result = run (
0 commit comments