created a mock exporter, and altered the config to use it.

This commit is contained in:
adriant 2014-02-28 12:55:19 +13:00
parent b15c528279
commit cc1136ae50
2 changed files with 11 additions and 1 deletions

10
tests/mock_exporter.py Normal file
View File

@ -0,0 +1,10 @@
from artifice import sales_order
class MockExporter(sales_order.SalesOrder):
def _bill(self, tenant):
pass
def close(self):
pass

View File

@ -42,7 +42,7 @@ config = {
"host": "http://localhost:8777/"
},
"main": {
"export_provider": "artifice.plugins.csv_:Csv",
"export_provider": "tests.mock_exporter:MockExporter",
"database_uri": PG_DATABASE_URI
},
"openstack": {