created a mock exporter, and altered the config to use it.
This commit is contained in:
parent
b15c528279
commit
cc1136ae50
10
tests/mock_exporter.py
Normal file
10
tests/mock_exporter.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from artifice import sales_order
|
||||||
|
|
||||||
|
|
||||||
|
class MockExporter(sales_order.SalesOrder):
|
||||||
|
|
||||||
|
def _bill(self, tenant):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
pass
|
@ -42,7 +42,7 @@ config = {
|
|||||||
"host": "http://localhost:8777/"
|
"host": "http://localhost:8777/"
|
||||||
},
|
},
|
||||||
"main": {
|
"main": {
|
||||||
"export_provider": "artifice.plugins.csv_:Csv",
|
"export_provider": "tests.mock_exporter:MockExporter",
|
||||||
"database_uri": PG_DATABASE_URI
|
"database_uri": PG_DATABASE_URI
|
||||||
},
|
},
|
||||||
"openstack": {
|
"openstack": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user