Skip to content

Commit

Permalink
Fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe committed Oct 19, 2023
1 parent aa775d9 commit 2e8cc24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions curated_transformers/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def getopt(opt):
return item.config.getoption(f"--{opt}", False)

# Integration of boolean flags
for opt in ["slow", "upload_tests"]:
for opt in ["upload_tests", "slow"]:
if opt in item.keywords and not getopt(opt.replace("_", "-")):
pytest.skip(f"need --{opt} option to run")
pytest.skip(f"need --{opt.replace('_', '-')} option to run")


@pytest.fixture
Expand Down
7 changes: 3 additions & 4 deletions curated_transformers/tests/repository/test_hf_hub.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import pytest

from curated_transformers.repository import HfHubRepository

TEST_LINES = ["Line 1", "Line 2 🐍", "🤖" "\n\n", ""]


@pytest.mark.upload_test
@pytest.mark.upload_tests
def test_hf_hub_upload_txt():
repo = HfHubRepository("explosion-testing/hf-upload-test")

Expand All @@ -20,7 +19,7 @@ def test_hf_hub_upload_txt():
assert str_read == str_to_write


@pytest.mark.upload_test
@pytest.mark.upload_tests
def test_hf_hub_upload_binary():
repo = HfHubRepository("explosion-testing/hf-upload-test")

Expand All @@ -35,7 +34,7 @@ def test_hf_hub_upload_binary():
assert bytes_read == bytes_to_write


@pytest.mark.upload_test
@pytest.mark.upload_tests
def test_hf_hub_transactions():
repo = HfHubRepository("explosion-testing/hf-upload-test")

Expand Down

0 comments on commit 2e8cc24

Please sign in to comment.