Skip to content

Commit

Permalink
fix a broken snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jandom committed Aug 3, 2023
1 parent e217c67 commit 2ba8305
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# serializer version: 1
# name: test_write_unit_table
list([
tuple(
'''
.. Generated by /Users/jandom/micromamba/envs/guide/lib/python3.9/site-packages/pytest/__main__.py

''',
),
tuple(
'''

Expand Down
3 changes: 2 additions & 1 deletion doc/source/scripts/tests/snapshot/test_gen_unit_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ def test_write_unit_table(snapshot):
write_unit_table(filename=Path())

lines = [args[0] for args in mock_open_file.return_value.write.call_args_list]
assert lines == snapshot
# Exclude the first line, because it contains "Generated by /home/username/..."
assert lines[1:] == snapshot

0 comments on commit 2ba8305

Please sign in to comment.