Skip to content

Commit

Permalink
GH-2534: remove unused slow tag
Browse files Browse the repository at this point in the history
  • Loading branch information
helpmefindaname committed Dec 6, 2021
1 parent f6d1d1d commit 067b8b0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Expand Up @@ -39,9 +39,3 @@ To run integration tests execute:
pytest --runintegration tests/
```
The integration tests will train small models.
Afterwards, the trained model will be loaded for prediction.

To also run slow tests, such as loading and using the embeddings provided by flair, you should execute:
```bash
pytest --runslow tests/
```
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -16,5 +16,4 @@ exclude = '''
addopts = "-W error"
markers = [
"integration",
"slow",
]
6 changes: 0 additions & 6 deletions resources/docs/KOR_docs/README.md
Expand Up @@ -205,9 +205,3 @@ pytest tests/
pytest --runintegration tests/
```
통합 테스트는 작은 모델을 훈련합니다.
그 후에 예측을 위해 훈련된 모델이 로드됩니다.

또한 flair에서 제공하는 임베딩을 로드하고 사용하는 것처럼 느린 테스트를 실행하려면 다음을 실행해야 합니다:
```bash
pytest --runslow tests/
```
12 changes: 0 additions & 12 deletions tests/conftest.py
Expand Up @@ -28,9 +28,6 @@ def results_base_path(resources_path):


def pytest_addoption(parser):
parser.addoption(
"--runslow", action="store_true", default=False, help="run slow tests"
)
parser.addoption(
"--runintegration",
action="store_true",
Expand All @@ -40,15 +37,6 @@ def pytest_addoption(parser):


def pytest_collection_modifyitems(config, items):
if config.getoption("--runslow") and config.getoption("--runintegration"):
return

if not config.getoption("--runslow"):
skip_slow = pytest.mark.skip(reason="need --runslow option to run")
for item in items:
if "slow" in item.keywords:
item.add_marker(skip_slow)

if not config.getoption("--runintegration"):
skip_integration = pytest.mark.skip(
reason="need --runintegration option to run"
Expand Down

0 comments on commit 067b8b0

Please sign in to comment.