22
33# ruff: noqa: S105
44import csv
5- import sys
65from pathlib import Path
76
87import pytest
@@ -25,10 +24,6 @@ class TestSeedCommand:
2524 seed_users_path = "app.commands.db._seed_users_from_csv"
2625 aiorun_path = "app.commands.db.aiorun"
2726
28- @pytest .mark .xfail (
29- sys .version_info < (3 , 10 ),
30- reason = "Fails under Python <3.10, testing issue not a code issue." ,
31- )
3227 def test_seed_no_force_cancels (self , mocker , tmp_path ) -> None :
3328 """Test that running 'seed' without --force cancels the operation."""
3429 # Create a dummy CSV file
@@ -65,10 +60,6 @@ def test_seed_no_force_cancels(self, mocker, tmp_path) -> None:
6560 # Verify seed function was never called
6661 seed_mock .assert_not_called ()
6762
68- @pytest .mark .xfail (
69- sys .version_info < (3 , 10 ),
70- reason = "Fails under Python <3.10, testing issue not a code issue." ,
71- )
7263 def test_seed_with_force (self , mocker , tmp_path ) -> None :
7364 """Test that running 'seed' with --force seeds the database."""
7465 # Create a dummy CSV file
@@ -103,10 +94,6 @@ def test_seed_with_force(self, mocker, tmp_path) -> None:
10394 # Verify seed function was called with correct arguments
10495 seed_mock .assert_called_once_with (dummy_file )
10596
106- @pytest .mark .xfail (
107- sys .version_info < (3 , 10 ),
108- reason = "Fails under Python <3.10, testing issue not a code issue." ,
109- )
11097 def test_seed_with_confirmation (self , mocker , tmp_path ) -> None :
11198 """Test that running 'seed' with confirmation seeds the database."""
11299 # Create a dummy CSV file
@@ -142,10 +129,6 @@ def test_seed_with_confirmation(self, mocker, tmp_path) -> None:
142129 # Verify seed function was called with correct arguments
143130 seed_mock .assert_called_once_with (dummy_file )
144131
145- @pytest .mark .xfail (
146- sys .version_info < (3 , 10 ),
147- reason = "Fails under Python <3.10, testing issue not a code issue." ,
148- )
149132 def test_seed_missing_specified_file (self ) -> None :
150133 """Test running 'seed' with a non-existent file fails with an error."""
151134 # Use a path that definitely doesn't exist
0 commit comments