diff --git a/dataproc/api/tests.py b/dataproc/api/tests.py deleted file mode 100644 index af4d534b7f607dd7a56737078cc6b34b1b2b41c0..0000000000000000000000000000000000000000 --- a/dataproc/api/tests.py +++ /dev/null @@ -1,4 +0,0 @@ -# Django imports -from django.test import TestCase - -# Create your tests here. diff --git a/dataproc/api/tests/__init__.py b/dataproc/api/tests/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/dataproc/api/tests/__pycache__/__init__.cpython-38.pyc b/dataproc/api/tests/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc2a0495fe423189b65fa3e71568611c3c44f9ee Binary files /dev/null and b/dataproc/api/tests/__pycache__/__init__.cpython-38.pyc differ diff --git a/dataproc/api/tests/__pycache__/test_models.cpython-38.pyc b/dataproc/api/tests/__pycache__/test_models.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f015518269c7eee738c3994877dd1a5e488dc25b Binary files /dev/null and b/dataproc/api/tests/__pycache__/test_models.cpython-38.pyc differ diff --git a/dataproc/api/tests/__pycache__/test_urls.cpython-38.pyc b/dataproc/api/tests/__pycache__/test_urls.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c43bc74ab0d1670648fdcdd622ebc7284b704c04 Binary files /dev/null and b/dataproc/api/tests/__pycache__/test_urls.cpython-38.pyc differ diff --git a/dataproc/api/tests/__pycache__/test_views.cpython-38.pyc b/dataproc/api/tests/__pycache__/test_views.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..31c7beac7c7081ddadc21d553e27fa6e6e5f6d4c Binary files /dev/null and b/dataproc/api/tests/__pycache__/test_views.cpython-38.pyc differ diff --git a/dataproc/api/tests/test_models.py b/dataproc/api/tests/test_models.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/dataproc/api/tests/test_urls.py b/dataproc/api/tests/test_urls.py new file mode 100644 index 0000000000000000000000000000000000000000..f917177b63a6ca88fe87218d1374c598c6e3a873 --- /dev/null +++ b/dataproc/api/tests/test_urls.py @@ -0,0 +1,12 @@ +# Django imports +from django.test import SimpleTestCase +from django.urls import reverse, resolve + +# Views Imports +from api.views.input_view import storeInput + +class TestUrls(SimpleTestCase): + + def test_add_input_url_resolves(self): + url = reverse('store_input') + self.assertEquals(resolve(url).func, storeInput) \ No newline at end of file diff --git a/dataproc/api/tests/test_views.py b/dataproc/api/tests/test_views.py new file mode 100644 index 0000000000000000000000000000000000000000..d84890a880e58d51e98366ebda2e024a6c03cfc2 --- /dev/null +++ b/dataproc/api/tests/test_views.py @@ -0,0 +1,15 @@ +# Python imports +import json + +# Django imports +from django.test import TestCase, Client +from django.urls import reverse + +# Models imports + +class TestViews(TestCase): + + def test_sotreInput(self): + client = Client() + response = client.get(reverse('store_input')) + self.assertEquals(response.status_code, 200)