Skip to content

Commit

Permalink
Merge 6ffe036 into a1e9df6
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst committed Jun 27, 2019
2 parents a1e9df6 + 6ffe036 commit 7a4d445
Show file tree
Hide file tree
Showing 23 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion .coveragerc
@@ -1,3 +1,2 @@
[run]
source = pynamodb/.
omit = pynamodb/tests/*
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -30,7 +30,7 @@ before_script:
- sleep 2

script:
- py.test --cov-report term-missing --cov=pynamodb pynamodb/tests/
- py.test --cov-report term-missing --cov=pynamodb tests
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then mypy .; fi

after_success:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -31,7 +31,7 @@ def find_stubs(package):
setup(
name='pynamodb',
version=__import__('pynamodb').__version__,
packages=find_packages(),
packages=find_packages(exclude=('tests',)),
url='http://jlafon.io/pynamodb.html',
author='Jharrod LaFon',
author_email='jlafon@eyesopen.com',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -22,8 +22,8 @@
PROVISIONED_BILLING_MODE, PAY_PER_REQUEST_BILLING_MODE)
from pynamodb.expressions.operand import Path, Value
from pynamodb.expressions.update import SetAction
from pynamodb.tests.data import DESCRIBE_TABLE_DATA, GET_ITEM_DATA, LIST_TABLE_DATA
from pynamodb.tests.deep_eq import deep_eq
from .data import DESCRIBE_TABLE_DATA, GET_ITEM_DATA, LIST_TABLE_DATA
from .deep_eq import deep_eq

if six.PY3:
from unittest.mock import patch
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pynamodb/tests/test_model.py → tests/test_model.py
Expand Up @@ -12,7 +12,7 @@
from botocore.client import ClientError
import pytest

from pynamodb.tests.deep_eq import deep_eq
from .deep_eq import deep_eq
from pynamodb.connection.util import pythonic
from pynamodb.exceptions import DoesNotExist, TableError
from pynamodb.types import RANGE
Expand All @@ -30,7 +30,7 @@
UnicodeAttribute, NumberAttribute, BinaryAttribute, UTCDateTimeAttribute,
UnicodeSetAttribute, NumberSetAttribute, BinarySetAttribute, MapAttribute,
BooleanAttribute, ListAttribute)
from pynamodb.tests.data import (
from .data import (
MODEL_TABLE_DATA, GET_MODEL_ITEM_DATA, SIMPLE_MODEL_TABLE_DATA,
DESCRIBE_TABLE_DATA_PAY_PER_REQUEST,
BATCH_GET_ITEMS, SIMPLE_BATCH_GET_ITEMS, COMPLEX_TABLE_DATA,
Expand Down
2 changes: 1 addition & 1 deletion pynamodb/tests/test_mypy.py → tests/test_mypy.py
Expand Up @@ -5,7 +5,7 @@
import pytest

pytest.importorskip('mypy') # we only install mypy in python>=3.6 tests
pytest.register_assert_rewrite('pynamodb.tests.mypy_helpers')
pytest.register_assert_rewrite('tests.mypy_helpers')
from .mypy_helpers import assert_mypy_output # noqa


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -7,8 +7,8 @@
from pynamodb.connection import TableConnection
from pynamodb.constants import DEFAULT_REGION, PROVISIONED_BILLING_MODE
from pynamodb.expressions.operand import Path
from pynamodb.tests.data import DESCRIBE_TABLE_DATA, GET_ITEM_DATA
from pynamodb.tests.response import HttpOK
from .data import DESCRIBE_TABLE_DATA, GET_ITEM_DATA
from .response import HttpOK

if six.PY3:
from unittest.mock import patch
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -8,5 +8,5 @@ envlist = py26,py27,py33,py34,py35,py36,pypy
deps = -rrequirements-dev.txt
; To include integration tests that require DynamoDB Local,
; use this instead:
;commands = py.test pynamodb/tests
commands = py.test -m 'not ddblocal' pynamodb/tests
;commands = py.test tests
commands = py.test -m 'not ddblocal' tests

0 comments on commit 7a4d445

Please sign in to comment.