Skip to content

Commit

Permalink
Merge pull request #175 from yarsanich/a282953159619251_tests_refacto…
Browse files Browse the repository at this point in the history
…ring

health tests for new structure
  • Loading branch information
vmaksymiv committed Mar 23, 2017
2 parents 01b7379 + 0ebcfd6 commit 3fab893
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/openprocurement/api/includeme.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
def includeme(config):
print "Init api"
config.scan("openprocurement.api.views")
19 changes: 10 additions & 9 deletions src/openprocurement/api/tests/base.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# -*- coding: utf-8 -*-
import unittest
import webtest
import os
from copy import deepcopy
from datetime import datetime, timedelta
import webtest
import unittest
from uuid import uuid4
from requests.models import Response
from base64 import b64encode
from urllib import urlencode
from datetime import datetime
from types import FunctionType


from openprocurement.api.constants import SANDBOX_MODE, VERSION
from openprocurement.api.utils import SESSION, apply_data_patch
from openprocurement.api.constants import VERSION
from openprocurement.api.design import sync_design


now = datetime.now()


def snitch(func):
return FunctionType(func.func_code, func.func_globals,
'test_' + func.func_name, closure = func.func_closure)

class PrefixedRequestClass(webtest.app.TestRequest):

@classmethod
Expand Down

0 comments on commit 3fab893

Please sign in to comment.