Skip to content

Commit 6d819f0

Browse files
committed
fixing the tests for old pythons
1 parent 31d7275 commit 6d819f0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sphinx-sitemap==2.6.0
1313
sphinxemoji==0.3.1
1414
flake8==7.1.1
1515
python-dateutil==2.9.0.post0
16-
orjson==3.10.11
16+
orjson==3.10.12
1717
wheel==0.45.0
1818
tomli==2.1.0
1919
tomli-w==1.1.0

requirements-dev3.8.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sphinx-sitemap==2.6.0
1414
sphinxemoji==0.2.0
1515
flake8==7.1.0
1616
python-dateutil==2.9.0.post0
17-
orjson==3.10.5
17+
orjson==3.10.12
1818
wheel==0.43.0
1919
tomli==2.0.1
2020
tomli-w==1.0.0

tests/test_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TestCommands:
1212

1313
@pytest.mark.parametrize('name1, name2, expected_in_stdout, expected_exit_code', [
1414
('t1.json', 't2.json', """dictionary_item_added": [\n "root[0][\'key3\']""", 0),
15-
('t1_corrupt.json', 't2.json', "Error when loading t1: Illegal trailing comma before end of object: line 3 column 21 (char 45)\n", 1),
15+
('t1_corrupt.json', 't2.json', "Error when loading t1:", 1),
1616
('t1.json', 't2_json.csv', '"old_value": "value2"', 0),
1717
('t2_json.csv', 't1.json', '"old_value": "value3"', 0),
1818
('t1.csv', 't2.csv', '"new_value": "James"', 0),
@@ -23,6 +23,7 @@ class TestCommands:
2323
def test_diff_command(self, name1, name2, expected_in_stdout, expected_exit_code):
2424
t1 = os.path.join(FIXTURES_DIR, name1)
2525
t2 = os.path.join(FIXTURES_DIR, name2)
26+
2627
runner = CliRunner()
2728
result = runner.invoke(diff, [t1, t2])
2829
assert result.exit_code == expected_exit_code, f"test_diff_command failed for {name1}, {name2}"

0 commit comments

Comments
 (0)