Skip to content

Commit fd84e59

Browse files
Copilotddaspit
andauthored
Move pytest import to top of test_usfm_memory_text.py
Agent-Logs-Url: https://github.com/sillsdev/machine.py/sessions/65c86bdf-e2f9-4998-b0ba-5b62409675cd Co-authored-by: ddaspit <3261883+ddaspit@users.noreply.github.com>
1 parent d2db8aa commit fd84e59

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tests/corpora/test_usfm_memory_text.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import List
22

3+
import pytest
34
from testutils.corpora_test_helpers import scripture_ref
45

56
from machine.corpora import ScriptureRef, TextRow, UsfmMemoryText
@@ -466,8 +467,6 @@ def test_get_rows_incomplete_verse_range():
466467

467468

468469
def test_get_rows_book_code_different_to_filename() -> None:
469-
import pytest
470-
471470
with pytest.raises(Exception):
472471
get_rows(
473472
r"""\id LUK - Test
@@ -479,8 +478,6 @@ def test_get_rows_book_code_different_to_filename() -> None:
479478

480479

481480
def test_get_rows_book_code_invalid() -> None:
482-
import pytest
483-
484481
with pytest.raises(Exception):
485482
get_rows(
486483
r"""\id ZZZ - Test
@@ -492,8 +489,6 @@ def test_get_rows_book_code_invalid() -> None:
492489

493490

494491
def test_get_rows_book_code_truncated() -> None:
495-
import pytest
496-
497492
with pytest.raises(Exception):
498493
get_rows(
499494
r"""\id MA

0 commit comments

Comments
 (0)