Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Collects FeatureScript tests (`*_test.fs`), run with the evaluator in fs_eval
import pathlib

import pytest

from fs_eval.pytest_plugin import pytest_collect_file # noqa: F401


@pytest.fixture(autouse=True)
def _no_branch_override(monkeypatch):
"""The Onshape workflow sets FS_BRANCH for fs, which would put every test on its branch."""
monkeypatch.delenv("FS_BRANCH", raising=False)

# Tests write files as they're written on Linux and macOS, with "\n" line endings. On Windows, text written without
# newline="" gets "\r\n", which fs keeps (it syncs files byte for byte), so every test's fixtures would differ.
_write_text = pathlib.Path.write_text
Expand Down
Loading