1212
1313
1414@dataclass
15- class TestData :
15+ class FixtureData :
1616 """TestData"""
1717
1818 key1 : str = "coverage"
@@ -25,18 +25,18 @@ class TestData:
2525
2626
2727@pytest .fixture
28- def test_data () -> Generator [TestData , Any , None ]:
28+ def fixture_data () -> Generator [FixtureData , Any , None ]:
2929 """Provide test data"""
3030 current_dir = Path (__file__ ).parent
31- _ = TestData ()
31+ _ = FixtureData ()
3232 yield _
3333 chdir (current_dir )
3434
3535
36- def test_basic_crud (tmp_path : Path , test_data : TestData ) -> None :
36+ def test_basic_crud (tmp_path : Path , fixture_data : FixtureData ) -> None :
3737 """Test basic CRUD"""
3838 chdir (tmp_path )
39- _ = test_data
39+ _ = fixture_data
4040 assert run (command = ("list" , "--keys-only" )).line_count == 0
4141 run (command = ("add" , _ .key1 , _ .value1 ))
4242 run_after_add = run (command = ("list" , "--keys-only" ))
@@ -50,10 +50,10 @@ def test_basic_crud(tmp_path: Path, test_data: TestData) -> None:
5050 run_asserting_error (command = ("delete" , _ .key1 ), match = "does not exist in file" )
5151
5252
53- def test_optional_data_and_get (tmp_path : Path , test_data : TestData ) -> None :
53+ def test_optional_data_and_get (tmp_path : Path , fixture_data : FixtureData ) -> None :
5454 """Test optional data and get"""
5555 chdir (tmp_path )
56- _ = test_data
56+ _ = fixture_data
5757 assert run (command = ("list" , "--keys-only" )).line_count == 0
5858 run_asserting_error (command = ("get" , _ .key1 , "description" ), match = "does not exist" )
5959 run (command = ("add" , _ .key1 , _ .value1 , "--label" , _ .label1 , "--replace" ))
@@ -71,10 +71,10 @@ def test_optional_data_and_get(tmp_path: Path, test_data: TestData) -> None:
7171 assert run (command = ("get" , _ .key1 , "link" )).lines [0 ] == _ .link1
7272
7373
74- def test_table_list (tmp_path : Path , test_data : TestData ) -> None :
74+ def test_table_list (tmp_path : Path , fixture_data : FixtureData ) -> None :
7575 """Test table list"""
7676 chdir (tmp_path )
77- _ = test_data
77+ _ = fixture_data
7878 assert run (command = ("list" , "--keys-only" )).line_count == 0
7979 run (
8080 command = (
0 commit comments