Skip to content

Commit 48770c6

Browse files
committed
fix tests
1 parent dfb7c66 commit 48770c6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

hathor/feature_activation/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _validate_conflicting_bits(cls, features: dict[Feature, Criteria]) -> dict[F
8686
first, second = overlap
8787
raise ValueError(
8888
f'At least one pair of Features have the same bit configured for an overlapping interval: '
89-
f'{first.feature} and {second.feature}'
89+
f'{first.feature.value} and {second.feature.value}'
9090
)
9191

9292
return features

tests/feature_activation/test_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_conflicting_bits(features):
121121

122122
errors = e.value.errors()
123123
assert errors[0]['msg'] == 'At least one pair of Features have the same bit configured for an overlapping ' \
124-
'interval: Feature.NOP_FEATURE_1 and Feature.NOP_FEATURE_2'
124+
'interval: NOP_FEATURE_1 and NOP_FEATURE_2'
125125

126126

127127
@pytest.mark.parametrize(

tests/others/test_metrics.py

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def _init_manager():
109109
b'migrations': 0.0,
110110
b'event': 0.0,
111111
b'event-metadata': 0.0,
112+
b'feature-activation-metadata': 0.0,
112113
})
113114

114115
manager.tx_storage.pre_init()

0 commit comments

Comments
 (0)