From cc1136ae504315a861651515cf8bdc60a3c9a456 Mon Sep 17 00:00:00 2001 From: adriant Date: Fri, 28 Feb 2014 12:55:19 +1300 Subject: [PATCH] created a mock exporter, and altered the config to use it. --- tests/mock_exporter.py | 10 ++++++++++ tests/test_interface.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/mock_exporter.py diff --git a/tests/mock_exporter.py b/tests/mock_exporter.py new file mode 100644 index 0000000..88647cd --- /dev/null +++ b/tests/mock_exporter.py @@ -0,0 +1,10 @@ +from artifice import sales_order + + +class MockExporter(sales_order.SalesOrder): + + def _bill(self, tenant): + pass + + def close(self): + pass diff --git a/tests/test_interface.py b/tests/test_interface.py index b408468..2fbf190 100644 --- a/tests/test_interface.py +++ b/tests/test_interface.py @@ -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": {