From 3a4e36bccde16c1ed6bb1409ae002e42f0cff49d Mon Sep 17 00:00:00 2001 From: Carloshbfreire Date: Thu, 8 Sep 2022 15:51:27 -0300 Subject: [PATCH] Inserido teste com pytest close #21 --- .travis.yml | 1 + Libpythonpro/__init__.py | 2 +- Libpythonpro/tests/__init__.py | 0 Libpythonpro/tests/test_exemplo.py | 2 ++ setup.py | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 Libpythonpro/tests/__init__.py create mode 100644 Libpythonpro/tests/test_exemplo.py diff --git a/.travis.yml b/.travis.yml index 09bc50a7..e9a9a9be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,4 @@ python: install: - pip install -q -r requirements-dev.txt - flake8 + - pytest Libpythonpro \ No newline at end of file diff --git a/Libpythonpro/__init__.py b/Libpythonpro/__init__.py index 5e3048b2..edcfd0dd 100644 --- a/Libpythonpro/__init__.py +++ b/Libpythonpro/__init__.py @@ -1 +1 @@ -__version__ = '0.1' \ No newline at end of file +__version__ = '0.2' \ No newline at end of file diff --git a/Libpythonpro/tests/__init__.py b/Libpythonpro/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/Libpythonpro/tests/test_exemplo.py b/Libpythonpro/tests/test_exemplo.py new file mode 100644 index 00000000..41c6a276 --- /dev/null +++ b/Libpythonpro/tests/test_exemplo.py @@ -0,0 +1,2 @@ +def test_int(): + assert 1 == 0 \ No newline at end of file diff --git a/setup.py b/setup.py index 895662a9..f4c5b099 100644 --- a/setup.py +++ b/setup.py @@ -117,7 +117,7 @@ def find_package_data( long_description_content_type='text/markdown', author=AUTHOR, author_email=AUTHOR_EMAIL, - license=read('LICENSE'), + license=read('GNU AFFERO GENERAL PUBLIC LICENSE'), url=URL, packages=find_packages(exclude=["tests.*", "tests"]), package_data=find_package_data(PACKAGE, only_in_packages=False),