Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(100)  |  Call(60)  |  Derive(0)  |  Import(40)
Prints the Akara's error log. Is useful when running `nodetests --verbose`.

        def print_error_log():
    """
    Prints the Akara's error log. Is useful when running `nodetests --verbose`.
    """
    print "ERROR LOG\n"
    print os.path.join(config_root, 'logs', 'error.log')
    with open(os.path.join(config_root, 'logs', 'error.log'), "r") as errfile:
        for line in errfile:
            sys.stdout.write(line)
    print "END OF ERROR LOG\n"
        


src/i/n/ingestion-HEAD/test/test_usc_set_dataprovider.py   ingestion(Download)
from server_support import server, print_error_log, H
from amara.thirdparty import json
from dict_differ import DictDiffer, assert_same_jsons, pinfo
 
def _get_server_response(body):
 
    resp, content = _get_server_response(json.dumps(INPUT))
    print_error_log()
    assert resp["status"] == "200"
    assert_same_jsons(EXPECTED, json.loads(content))
 
    resp, content = _get_server_response(json.dumps(INPUT))
    print_error_log()
    assert resp["status"] == "200"
    assert_same_jsons(EXPECTED, json.loads(content))

src/i/n/ingestion-HEAD/test/test_usc_enrich_location.py   ingestion(Download)
import sys
from amara.thirdparty import json
from server_support import server, H, print_error_log
from dict_differ import assert_same_jsons
 

src/i/n/ingestion-HEAD/test/test_uiuc_enrich_location.py   ingestion(Download)
import sys
from server_support import server, H, print_error_log
from amara.thirdparty import json
from dplaingestion.akamod.uiuc_enrich_location import is_spatial, format_spatial
 

src/i/n/ingestion-HEAD/test/test_uiuc_cleanup_spatial_name.py   ingestion(Download)
from server_support import server, print_error_log, H
from amara.thirdparty import json
from dict_differ import DictDiffer, assert_same_jsons, pinfo
 
def _get_server_response(body):

src/i/n/ingestion-HEAD/test/test_set_type_from_physical_format.py   ingestion(Download)
import sys
from server_support import server, print_error_log
from amara.thirdparty import httplib2
from amara.thirdparty import json
from dict_differ import assert_same_jsons

src/i/n/ingestion-HEAD/test/test_set_spec_type.py   ingestion(Download)
from server_support import server, print_error_log, H
from amara.thirdparty import json
from dict_differ import DictDiffer, assert_same_jsons, pinfo
 
def _get_server_response(body, prop=None):
 
    resp, content = _get_server_response(json.dumps(INPUT))
    print_error_log()
    assert resp["status"] == "200"
    assert_same_jsons(EXPECTED, json.loads(content))

src/i/n/ingestion-HEAD/test/test_set_prop.py   ingestion(Download)
import sys
from server_support import server, print_error_log
from amara.thirdparty import httplib2
from amara.thirdparty import json
from urllib import urlencode

src/i/n/ingestion-HEAD/test/test_scdl_geocode_regions.py   ingestion(Download)
import re
import sys
from server_support import server, H, print_error_log
from amara.thirdparty import json
from dplaingestion.akamod.scdl_geocode_regions import is_region, geocode_region

src/i/n/ingestion-HEAD/test/test_scdl_format_to_type.py   ingestion(Download)
from amara.thirdparty import json
from server_support import server, H, print_error_log
import sys
 
def test_scdl_format_to_type1():

src/i/n/ingestion-HEAD/test/test_replace_substring.py   ingestion(Download)
import sys
from server_support import server, print_error_log
from amara.thirdparty import httplib2
from amara.thirdparty import json
 

  1 | 2 | 3 | 4  Next