Skip to content

Commit

Permalink
try global run dummy method
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakf committed Feb 8, 2024
1 parent e0620c6 commit a844f84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Run Tests
if: matrix.os != 'windows-latest'
run: |
python -m pip install --upgrade pip
pip install tox
tox -e py
- name: Package
Expand Down
9 changes: 5 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,16 @@ def get_big_content(n: int) -> str:
}


def run():
while True:
continue


@pytest.fixture(scope="class")
def setup_mock_server() -> None:
# import mock_server here to avoid cyclic import
import mock_server

def run():
while True:
continue

# server = Process(target=mock_server.app.run)
server = Process(target=run)
server.start()
Expand Down

0 comments on commit a844f84

Please sign in to comment.