Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed Oct 2, 2019
1 parent 5f8c0c7 commit a4e1c2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion amsd/scripts/initializedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from clld.db.meta import DBSession
from clld.db.models import common
from clldutils.path import Path
from clldutils.dsv import reader
from csvw.dsv import reader
from clldutils.misc import slug, nfilter

import amsd
Expand Down
1 change: 1 addition & 0 deletions development.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
# pyramid_debugtoolbar
pyramid_tm
sqlalchemy.url = postgresql://postgres@/amsd

Expand Down
6 changes: 2 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ max-line-length = 100
exclude = .tox

[tool:pytest]
minversion = 3.1
minversion = 3.6
testpaths = tests
mock_use_standalone_module = true
filterwarnings =
ignore::sqlalchemy.exc.SAWarning
addopts =
--cov=amsd
--cov-report term-missing
addopts = --cov

[coverage:run]
source = amsd
Expand Down
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
from amsd import models
import pytest


@pytest.fixture
def data():
pass

4 changes: 0 additions & 4 deletions tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@

from amsd.scripts.initializedb import main, prime_cache


def test_dbinit(db):
main(None)
prime_cache(None)

0 comments on commit a4e1c2d

Please sign in to comment.