From 459b87a0202f3923d42e23a1712366109ebfdb7f Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 27 Apr 2020 16:26:27 +0200 Subject: [PATCH] unit tests --- .circleci/config.yml | 11 +++++++++++ .gitignore | 1 + tests/__init__.py | 0 tests/unit/__init__.py | 0 tests/unit/meme_otron/__init__.py | 0 tests/{ => unit/meme_otron}/test_utils.py | 0 6 files changed, 12 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/unit/__init__.py create mode 100644 tests/unit/meme_otron/__init__.py rename tests/{ => unit/meme_otron}/test_utils.py (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index fbcc5fc..c0708c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,8 +22,19 @@ jobs: git diff-index --quiet HEAD || git commit -m 'Automated README [ci skip]' git push origin master name: Building docs + unit-tests: + docker: + - image: circleci/python:latest + steps: + - checkout + - run: + command: | + sudo pip install pytest + python -m pytest ./tests/unit + name: Unit tests workflows: main: jobs: + - unit-tests - build-docs \ No newline at end of file diff --git a/.gitignore b/.gitignore index 384da50..c4063f6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ error_*.txt tmp .key* *.pyc +.pytest_cache diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/unit/meme_otron/__init__.py b/tests/unit/meme_otron/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_utils.py b/tests/unit/meme_otron/test_utils.py similarity index 100% rename from tests/test_utils.py rename to tests/unit/meme_otron/test_utils.py