[damned-lies] Fixed fixture export, defaulting to JSON



commit 0f90a3fad3b8c0a029de29e7b39670c696db8938
Author: Gil Forcada <gforcada gnome org>
Date:   Fri Oct 5 00:56:01 2012 +0200

    Fixed fixture export, defaulting to JSON

 stats/tests/fixture_factory.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/tests/fixture_factory.py b/stats/tests/fixture_factory.py
index 166e2b7..49f4d01 100644
--- a/stats/tests/fixture_factory.py
+++ b/stats/tests/fixture_factory.py
@@ -164,7 +164,7 @@ class FixtureFactory(TestCase):
 
         # Output fixture
         data = Dumpdata().handle(*['auth.User', 'people', 'teams', 'languages', 'stats'],
-                                 **{'indent':1})
+                                 **{'indent':1, 'exclude': [], 'format': 'json'})
         out_file = NamedTemporaryFile(suffix=".json", dir=".", delete=False)
         out_file.write(data)
         out_file.close()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]