Skip to content
Snippets Groups Projects
Commit 60b61e1e authored by thomaswoehlke's avatar thomaswoehlke
Browse files

working for 0.0.198 Release

parent 34c094ab
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,5 @@ def run_web():
app.logger.info("# Covid19 Data - WEB #")
app.logger.info("#############################################################")
app.logger.info(" ")
app.run(
debug=run_run_with_debug,
port=port
)
app.run(debug=run_run_with_debug, port=port)
import sys
import subprocess
from covid19 import app
from covid19.blueprints.application.application_workers import celery
#from flask import render_template, redirect, url_for, flash, Blueprint
#from celery import states
#from celery.utils.log import get_task_logger
import pytest
from flask import url_for
import tests.conftest
from unittest import TestCase
from conftest import app, client
def test_url_admin_tasks(client):
assert client.get(url_for('admin.url_admin_tasks')).status_code == 200
class Test(TestCase):
def __init__(self, client):
self.client = client
self.url_admin_tasks = url_for('admin.url_admin_tasks', _external=True)
self.url_admin_info = url_for('admin.url_admin_info', _external=True)
def test_run_test_01(self):
self.assertTrue(True)
def test_url_admin_info(client):
assert client.get(url_for('admin.url_admin_info')).status_code == 200
def test_run_test_02(self):
self.assertTrue(True)
def test_url_admin_tasks(self):
assert self.client.get(self.url_admin_tasks).status_code == 200
def test_url_admin_info(self):
assert self.client.get(self.url_admin_info).status_code == 200
import pytest
from flask import url_for
from unittest import TestCase
from conftest import app, client
class Test(TestCase):
def __init__(self, client):
self.client = client
self.url_home = url_for('application.url_home', _external=True)
self.url_root = url_for('application.url_root', _external=True)
def test_run_test_01(self):
self.assertTrue(True)
def test_run_test_02(self):
self.assertTrue(True)
def test_url_home(self):
assert self.client.get(self.url_home).status_code == 200
def test_url_root(self):
assert self.client.get(self.url_root).status_code == 200
import logging
#from src.covid19.blueprints.application.application_services import owid_service
#from src.covid19.blueprints.application.application_workers import celery
#from src.covid19.blueprints.owid.owid_model import OwidDateReported, OwidData
#from src.covid19.blueprints.owid.owid_model_import import OwidImport
#from src.covid19.blueprints.application.application_model_transient import ApplicationPage
from unittest import TestCase
#from tests.conftest import app
class Test(TestCase):
#def test_run_test(self):
# continents = OwidImport.get_continents()
# for continent in continents:
# logging.info(continent)
# self.assertTrue(True)
def test_run_test_01(self):
self.assertTrue(True)
def test_run_test_02(self):
self.assertTrue(True)
import pytest
from flask import url_for
from unittest import TestCase
from conftest import app, client
class Test(TestCase):
def __init__(self, client):
self.client = client
def test_run_test_01(self):
self.assertTrue(True)
def test_run_test_02(self):
self.assertTrue(True)
import pytest
from flask import url_for
import covid19.blueprints.application.application_views
import tests.conftest
from unittest import TestCase
from conftest import app, client
appctx = None
reqctx = None
class Test(TestCase):
def __init__(self, client):
self.client = client
self.url_admin_tasks = url_for(endpoint='who.url_who_info', _external=True)
self.url_admin_info = url_for(endpoint='who.url_who_info', _external=True)
def test_url_admin_tasks(client):
url = url_for(endpoint='who.url_who_info', _external=True, appctx=appctx, reqctx=reqctx)
assert client.get(url).status_code == 200
def test_url_admin_tasks(self):
assert self.client.get(self.url_admin_tasks).status_code == 200
def test_url_admin_info(client):
url = url_for(endpoint='who.url_who_info', _external=True, appctx=appctx, reqctx=reqctx)
assert client.get(url).status_code == 200
def test_url_admin_info(self):
assert self.client.get(self.url_admin_info).status_code == 200
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment