Loading tests/test_model.py +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ Position = azm.model.Position TEST_DIR = os.path.dirname(__file__) @pytest.fixture() @pytest.fixture def verse_models(): verse_filepath = os.path.join(TEST_DIR, 'verses.json') verse_models = azm.model.from_json(verse_filepath) Loading tests/test_scanner.py +2 −2 Original line number Diff line number Diff line Loading @@ -13,13 +13,13 @@ SESSION_FACTORY = sessionmaker(bind=ENGINE) azm.db.BASE.metadata.create_all(ENGINE) @pytest.fixture() @pytest.fixture def word_list(): word_list = azm.wordlist.WordList(session_factory=SESSION_FACTORY) return word_list @pytest.fixture() @pytest.fixture def tokenized_verses(): verses = [ 'nunc dum tibi lubet licetque pota perde rem', Loading tests/test_wordlist.py +3 −3 Original line number Diff line number Diff line Loading @@ -19,20 +19,20 @@ SESSION_FACTORY = sessionmaker(bind=ENGINE) azm.db.BASE.metadata.create_all(ENGINE) @pytest.fixture() @pytest.fixture def word_list(): word_list = azm.wordlist.WordList(session_factory=SESSION_FACTORY) return word_list @pytest.fixture() @pytest.fixture def populated_word_list(word_list): word_list.populate_database(MACRONS_FILE) yield word_list word_list.depopulate_database() @pytest.fixture() @pytest.fixture def loaded_word_list(populated_word_list): populated_word_list.load_all_from_db() populated_word_list.unknown_forms.add(NONEXISTENT_WORD) Loading Loading
tests/test_model.py +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ Position = azm.model.Position TEST_DIR = os.path.dirname(__file__) @pytest.fixture() @pytest.fixture def verse_models(): verse_filepath = os.path.join(TEST_DIR, 'verses.json') verse_models = azm.model.from_json(verse_filepath) Loading
tests/test_scanner.py +2 −2 Original line number Diff line number Diff line Loading @@ -13,13 +13,13 @@ SESSION_FACTORY = sessionmaker(bind=ENGINE) azm.db.BASE.metadata.create_all(ENGINE) @pytest.fixture() @pytest.fixture def word_list(): word_list = azm.wordlist.WordList(session_factory=SESSION_FACTORY) return word_list @pytest.fixture() @pytest.fixture def tokenized_verses(): verses = [ 'nunc dum tibi lubet licetque pota perde rem', Loading
tests/test_wordlist.py +3 −3 Original line number Diff line number Diff line Loading @@ -19,20 +19,20 @@ SESSION_FACTORY = sessionmaker(bind=ENGINE) azm.db.BASE.metadata.create_all(ENGINE) @pytest.fixture() @pytest.fixture def word_list(): word_list = azm.wordlist.WordList(session_factory=SESSION_FACTORY) return word_list @pytest.fixture() @pytest.fixture def populated_word_list(word_list): word_list.populate_database(MACRONS_FILE) yield word_list word_list.depopulate_database() @pytest.fixture() @pytest.fixture def loaded_word_list(populated_word_list): populated_word_list.load_all_from_db() populated_word_list.unknown_forms.add(NONEXISTENT_WORD) Loading