pytest.mark.serial for any test using isolated_filesystem(), refs #1406

This commit is contained in:
Simon Willison 2021-07-29 17:44:16 -07:00
commit b46856391d
3 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,7 @@ from click.testing import CliRunner
from datasette import cli
from unittest import mock
import pathlib
import pytest
class CaptureDockerfile:
@ -23,6 +24,7 @@ CMD datasette serve --host 0.0.0.0 -i test.db --cors --inspect-file inspect-data
""".strip()
@pytest.mark.serial
@mock.patch("shutil.which")
@mock.patch("datasette.cli.call")
def test_package(mock_call, mock_which, tmp_path_factory):