Exemplo n.º 1
0
def serve():
    web.configure()
    web.app.run(web.app.config.get('HOST'), web.app.config.get('PORT'))
Exemplo n.º 2
0
def serve_test():
    web.configure()
    return web.app.test_client()
Exemplo n.º 3
0
import os
import json
import unittest

import httpretty

import ckanserviceprovider.web as web
import datapusher.main as main
import datapusher.jobs as jobs
import ckanserviceprovider.util as util

os.environ['JOB_CONFIG'] = os.path.join(os.path.dirname(__file__),
                                        'settings_test.py')

web.configure()
app = main.serve_test()


def join_static_path(filename):
    return os.path.join(os.path.dirname(__file__), 'static', filename)


def get_static_file(filename):
    return open(join_static_path(filename)).read()


class TestImport(unittest.TestCase):
    @classmethod
    def setup_class(cls):
        cls.host = 'www.ckan.org'
Exemplo n.º 4
0
import json
import unittest
import datetime
from nose.tools import assert_equal, raises

import httpretty

import ckanserviceprovider.web as web
import datapusher.main as main
import datapusher.jobs as jobs
import ckanserviceprovider.util as util

os.environ['JOB_CONFIG'] = os.path.join(os.path.dirname(__file__),
                                        'settings_test.py')

web.configure()
app = main.serve_test()


def join_static_path(filename):
    return os.path.join(os.path.dirname(__file__), 'static', filename)


def get_static_file(filename):
    return open(join_static_path(filename)).read()


class TestImport(unittest.TestCase):
    @classmethod
    def setup_class(cls):
        cls.host = 'www.ckan.org'
Exemplo n.º 5
0
def serve_test():
    web.configure()
    return web.app.test_client()
Exemplo n.º 6
0
def serve():
    web.configure()
    web.app.run(web.app.config.get('HOST'), web.app.config.get('PORT'))
Exemplo n.º 7
0
def serve():
    web.configure()
    web.run()