Skip to content

Commit

Permalink
Merge pull request #10 from fizyk/pytest30
Browse files Browse the repository at this point in the history
add conftest and warnings filters to catch possible deprecation warnings
  • Loading branch information
fizyk committed Nov 15, 2016
2 parents 670fdb3 + 6b69b9b commit 4611b96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read(fname):


requirements = [
'pytest',
'pytest>=3.0.0',
'boto3',
'path.py',
'mirakuru',
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_dynamodb/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def dynamodb_factory(request):
https://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Client
:returns: connection to DynamoDB database
"""
proc_fixture = request.getfuncargvalue(process_fixture_name)
proc_fixture = request.getfixturevalue(process_fixture_name)

dynamo_db = boto3.resource(
'dynamodb',
Expand Down
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Tests main conftest file."""
import sys
import warnings

major, minor = sys.version_info[:2]

if not (major >= 3 and minor >= 5):
warnings.simplefilter("error", category=DeprecationWarning)

0 comments on commit 4611b96

Please sign in to comment.