Skip to content

Commit 39cd993

Browse files
Remove enable_filepath_feature fixture
Filepath feature is now always enabled; no feature flag needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 8271c86 commit 39cd993

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

tests/conftest.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,6 @@ def enable_adapted_types():
330330
yield
331331

332332

333-
@pytest.fixture
334-
def enable_filepath_feature():
335-
"""Legacy fixture - filepath feature is now always enabled."""
336-
yield
337-
338-
339333
# --- Cleanup fixtures ---
340334

341335

@@ -550,7 +544,7 @@ def schema_adv(connection_test, prefix):
550544

551545

552546
@pytest.fixture
553-
def schema_ext(connection_test, enable_filepath_feature, mock_stores, mock_cache, prefix):
547+
def schema_ext(connection_test, mock_stores, mock_cache, prefix):
554548
schema = dj.Schema(
555549
prefix + "_extern",
556550
context=schema_external.LOCALS_EXTERNAL,

tests/integration/test_adapted_attributes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def schema_name(prefix):
2323
@pytest.fixture
2424
def schema_ad(
2525
connection_test,
26-
enable_filepath_feature,
2726
s3_creds,
2827
tmpdir,
2928
schema_name,

tests/integration/test_update1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def schema_update1(connection_test, prefix):
5757
schema.drop()
5858

5959

60-
def test_update1(tmpdir, enable_filepath_feature, schema_update1, mock_stores_update):
60+
def test_update1(tmpdir, schema_update1, mock_stores_update):
6161
"""Test normal updates"""
6262
# CHECK 1 -- initial insert
6363
key = dict(thing=1)
@@ -128,19 +128,19 @@ def test_update1(tmpdir, enable_filepath_feature, schema_update1, mock_stores_up
128128
assert original_file_data == final_file_data
129129

130130

131-
def test_update1_nonexistent(enable_filepath_feature, schema_update1, mock_stores_update):
131+
def test_update1_nonexistent(schema_update1, mock_stores_update):
132132
with pytest.raises(DataJointError):
133133
# updating a non-existent entry
134134
Thing.update1(dict(thing=100, frac=0.5))
135135

136136

137-
def test_update1_noprimary(enable_filepath_feature, schema_update1, mock_stores_update):
137+
def test_update1_noprimary(schema_update1, mock_stores_update):
138138
with pytest.raises(DataJointError):
139139
# missing primary key
140140
Thing.update1(dict(number=None))
141141

142142

143-
def test_update1_misspelled_attribute(enable_filepath_feature, schema_update1, mock_stores_update):
143+
def test_update1_misspelled_attribute(schema_update1, mock_stores_update):
144144
key = dict(thing=17)
145145
Thing.insert1(dict(key, frac=1.5))
146146
with pytest.raises(DataJointError):

0 commit comments

Comments
 (0)