mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Addressed all of pyflakes3's complaints
This commit is contained in:
parent
82335886e1
commit
c3f566b2c9
16 changed files with 42 additions and 46 deletions
|
@ -5,7 +5,7 @@ from sqlalchemy.orm import aliased, joinedload, lazyload
|
|||
from sqlalchemy.orm.exc import NoResultFound
|
||||
from sqlalchemy.sql import func
|
||||
|
||||
from pokedex.db import connect, tables, util
|
||||
from pokedex.db import tables, util
|
||||
|
||||
def test_encounter_slots(session):
|
||||
"""Encounters have a version, which has a version group; encounters also
|
||||
|
|
|
@ -3,11 +3,10 @@
|
|||
import pytest
|
||||
|
||||
from sqlalchemy import Column, Integer, String, create_engine
|
||||
from sqlalchemy.orm import class_mapper, joinedload, sessionmaker
|
||||
from sqlalchemy.orm.session import Session
|
||||
from sqlalchemy.orm import joinedload, sessionmaker
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
from pokedex.db import tables, markdown
|
||||
from pokedex.db import tables
|
||||
from pokedex.db.multilang import MultilangScopedSession, MultilangSession, \
|
||||
create_translation_table
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
import pytest
|
||||
parametrize = pytest.mark.parametrize
|
||||
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
|
||||
from pokedex.db import tables, connect, util, markdown
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import pytest
|
||||
parametrize = pytest.mark.parametrize
|
||||
|
||||
from pokedex.db import connect, tables, util
|
||||
from pokedex.db import tables, util
|
||||
|
||||
def test_get_item_identifier(session):
|
||||
item = util.get(session, tables.Item, identifier='master-ball')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue