Skip to content

Commit

Permalink
Update SnapshotTracer tests to use [email protected] and prevetn brows…
Browse files Browse the repository at this point in the history
…er from opening
  • Loading branch information
david-yz-liu committed Dec 8, 2024
1 parent cb2c096 commit 3517dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Added `pytest-mock` as a development dependency
- Make `test_snapshot.py::test_snapshot_serializes_unserializable_value` able to run on Windows.
- Added GitHub Action workflow for automatically publishing releases to PyPI
- Update `SnapshotTracer` tests to use `[email protected]` and prevent browser from opening

## [2.8.1] - 2024-08-19

Expand Down
4 changes: 2 additions & 2 deletions tests/test_debug/test_snapshot_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
os.path.dirname(os.path.realpath(__file__)), "snapshot_tracer_testing_snapshots"
)
MEMORY_VIZ_ARGS = ["--roughjs-config", "seed=12345"]
MEMORY_VIZ_VERSION = "0.4.0"
MEMORY_VIZ_VERSION = "0.5.0"


# Function inputs for testing the SnapshotTracer
Expand Down Expand Up @@ -237,7 +237,7 @@ def test_no_output_directory(self, snapshot, setup_curr_dir_testing):
{"snapshot-0.svg": actual_file.read()}, func_no_output_dir.__name__
)

def test_generated_webstepper_html(self, snapshot, tmp_path):
def test_generated_webstepper_html(self, snapshot, tmp_path, prevent_webbrowser_and_httpserver):
"""
Test that SnapshotTracer generates the correct Webstepper HTML for the given code.
Expand Down

0 comments on commit 3517dab

Please sign in to comment.