Skip to content

Commit f106f6d

Browse files
committed
WIP: fixing tests
1 parent 19a8157 commit f106f6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/migration_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def test_build_migration_sequence_empty(mock_get_previous_migration_id):
1616
# Mock the output of get_migration_files
1717
with patch.object(Migration, 'get_migration_files', return_value=[]):
1818
# Instantiate YourClass
19-
your_instance = Migration()
19+
migration_instance = Migration()
2020

2121
# Call the method to test
22-
result = your_instance.build_migration_sequence()
22+
result = migration_instance.build_migration_sequence()
2323

2424
# Assert that the result is an empty dictionary
2525
assert result == {}
@@ -36,10 +36,10 @@ def test_build_migration_sequence_with_dependencies(mock_get_previous_migration_
3636
}.get
3737

3838
# Instantiate YourClass
39-
your_instance = Migration()
39+
migration_instance = Migration()
4040

4141
# Call the method to test
42-
result = your_instance.build_migration_sequence()
42+
result = migration_instance.build_migration_sequence()
4343

4444
# Assert the result
4545
expected_result = {'migration1': None, 'migration2': 'migration1', 'migration3': 'migration2'}
@@ -56,7 +56,7 @@ def test_build_migration_sequence_with_circular_dependency(mock_get_previous_mig
5656
}.get
5757

5858
# Instantiate YourClass
59-
your_instance = Migration()
59+
migration_instance = Migration()
6060

6161
# Call the method to test and assert the raised ValueError with the expected message
6262
with pytest.raises(ValueError) as exc_info:

0 commit comments

Comments
 (0)