Skip to content

Commit

Permalink
test(examples): move shared fixtures to a common folder so they can b…
Browse files Browse the repository at this point in the history
…e reused, remove repeated code
  • Loading branch information
mikegeeves committed Feb 10, 2022
1 parent 4efc5d5 commit c568afe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions examples/fastapi_provider/tests/conftest.py
@@ -1,18 +1,17 @@
# Load in the fixtures from common/sharedfixtures.py
import sys
from multiprocessing import Process

import pytest

from .pact_provider import run_server

# Load in the fixtures from common/sharedfixtures.py
sys.path.append("../common")

pytest_plugins = [
"sharedfixtures",
]

from multiprocessing import Process

import pytest

from .pact_provider import run_server


@pytest.fixture(scope="module")
def server():
Expand Down
2 changes: 1 addition & 1 deletion examples/flask_provider/tests/conftest.py
@@ -1,6 +1,6 @@
# Load in the fixtures from common/sharedfixtures.py
import sys

# Load in the fixtures from common/sharedfixtures.py
sys.path.append("../common")

pytest_plugins = [
Expand Down
2 changes: 1 addition & 1 deletion examples/message/conftest.py
@@ -1,6 +1,6 @@
# Load in the fixtures from common/sharedfixtures.py
import sys

# Load in the fixtures from common/sharedfixtures.py
sys.path.append("../common")

pytest_plugins = [
Expand Down

0 comments on commit c568afe

Please sign in to comment.