Skip to content

Commit

Permalink
Merge pull request #3 from oleksiyVeretiuk/459243175931284_add_endpoint
Browse files Browse the repository at this point in the history
Add endpoint for tests
  • Loading branch information
leits committed Oct 25, 2017
2 parents b883e62 + 95f6c8c commit 8839b1b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions openprocurement/bridge/basic/tests/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-

import unittest

from openprocurement.bridge.basic.tests import databridge, workers, test_couchdb_storage, test_elasticsearch_storage


def suite():
tests = unittest.TestSuite()
tests.addTest(workers.suite())
tests.addTest(databridge.suite())
tests.addTest(test_couchdb_storage.suite())
tests.addTest(test_elasticsearch_storage.suite())
return tests


if __name__ == '__main__':
unittest.main(defaultTest='suite')
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
'openprocurement.bridge.basic.plugins': [
'couchdb = openprocurement.bridge.basic.storages.couchdb_plugin:includme',
'elasticsearch = openprocurement.bridge.basic.storages.elasticsearch_plugin:includme'
],
'openprocurement.tests': [
'bridge.basic = openprocurement.bridge.basic.tests.main:suite'
]
}

Expand Down

0 comments on commit 8839b1b

Please sign in to comment.