Skip to content

Commit 9b8d5f1

Browse files
committed
Add test coverage
1 parent f170891 commit 9b8d5f1

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
> Utility belt to handle data on AWS.
44
55
[![Release](https://img.shields.io/badge/release-0.0.9-brightgreen.svg)](https://pypi.org/project/awswrangler/)
6-
[![Release](https://img.shields.io/pypi/dm/awswrangler.svg)](https://pypi.org/project/awswrangler/)
6+
[![Downloads](https://img.shields.io/pypi/dm/awswrangler.svg)](https://pypi.org/project/awswrangler/)
77
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7-brightgreen.svg)](https://pypi.org/project/awswrangler/)
88
[![Documentation Status](https://readthedocs.org/projects/aws-data-wrangler/badge/?version=latest)](https://aws-data-wrangler.readthedocs.io/en/latest/?badge=latest)
9+
[![Coverage](https://img.shields.io/badge/coverage-83%25-brightgreen.svg)](https://pypi.org/project/awswrangler/)
910
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/awslabs/aws-data-wrangler.svg)](http://isitmaintained.com/project/awslabs/aws-data-wrangler "Average time to resolve an issue")
1011
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
1112

requirements-dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
yapf~=0.28.0
2+
mypy~=0.730
23
flake8~=3.7.8
3-
pytest~=5.1.0
4+
pytest-cov~=2.8.1
45
cfn-lint~=0.23.3
56
twine~=1.13.0
6-
pyspark~=2.4.3
7+
pyspark~=2.4.4
78
wheel~=0.33.6
89
sphinx~=2.1.2
9-
pyspark-stubs~=2.4.0
10-
mypy~=0.730
10+
pyspark-stubs~=2.4.0
File renamed without changes.

testing/run-tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
set -e
44

55
cd ..
6-
rm -rf *.pytest_cache
6+
rm -rf .pytest_cache .mypy_cache
7+
pip install -e .
78
yapf --in-place --recursive setup.py awswrangler testing/test_awswrangler
8-
flake8 setup.py awswrangler testing/test_awswrangler
99
mypy awswrangler
10-
pip install -e .
11-
pytest testing/test_awswrangler awswrangler
12-
rm -rf *.pytest_cache
10+
flake8 setup.py awswrangler testing/test_awswrangler
11+
pytest --cov=awswrangler testing/test_awswrangler
12+
rm -rf .pytest_cache .mypy_cache
1313
cd testing

testing/test_awswrangler/test_pandas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import numpy as np
1010

1111
from awswrangler import Session, Pandas
12-
from awswrangler.exceptions import LineTerminatorNotFound, EmptyDataframe, InvalidSerDe, UnsupportedType, UndetectedType
12+
from awswrangler.exceptions import LineTerminatorNotFound, EmptyDataframe, InvalidSerDe, UndetectedType
1313

1414
logging.basicConfig(
1515
level=logging.INFO,
@@ -930,7 +930,7 @@ def test_to_parquet_with_pyarrow_null_type(
930930
"col_null": [None, None, None],
931931
"c": [7, 8, 9],
932932
})
933-
with pytest.raises(UnsupportedType):
933+
with pytest.raises(UndetectedType):
934934
assert session.pandas.to_parquet(dataframe=dataframe,
935935
database=database,
936936
path=f"s3://{bucket}/test/",

0 commit comments

Comments
 (0)