mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
pytest.mark.serial for any test using isolated_filesystem(), refs #1406
This commit is contained in:
parent
121e10c29c
commit
2b1c535c12
3 changed files with 14 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ from click.testing import CliRunner
|
|||
from datasette import cli
|
||||
from unittest import mock
|
||||
import pathlib
|
||||
import json
|
||||
import pytest
|
||||
|
||||
|
||||
class CaptureDockerfile:
|
||||
|
|
@ -24,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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue