new fixture for creating a test user & remove token information from fixture fro...
authorSofia Papagiannaki <papagian@gmail.com>
Tue, 24 Jan 2012 10:44:08 +0000 (12:44 +0200)
committerSofia Papagiannaki <papagian@gmail.com>
Tue, 24 Jan 2012 10:44:08 +0000 (12:44 +0200)
Ref: #1920

astakos/im/fixtures/admin_user.json
astakos/im/fixtures/test_user.json [new file with mode: 0644]

index 28b9709..1757ce3 100644 (file)
@@ -5,10 +5,7 @@
         "fields": {
             "level": 0,
             "invitations": 10000,
-            "auth_token": "0000",
-            "auth_token_created": "2011-09-11 09:17:14",
-            "auth_token_expires": "2012-09-11 09:17:14",
-            "updated": "2011-09-11"
-           }
+            "updated": "2012-01-24"
+       }
     }
 ]
diff --git a/astakos/im/fixtures/test_user.json b/astakos/im/fixtures/test_user.json
new file mode 100644 (file)
index 0000000..722557f
--- /dev/null
@@ -0,0 +1,20 @@
+[
+    {
+        "model": "auth.user",
+        "pk": 2,
+        "fields": {
+            "username": "test",
+            "email": "papagian@gmail.com",
+            "password": "sha1$84fb5$d7d29831d42611a2ad56c136e4280fdc114539ff"
+        }
+    },
+    {
+        "model": "im.AstakosUser",
+        "pk": 2,
+        "fields": {
+            "level": 1,
+            "invitations": 2,
+            "updated": "2012-01-24"
+       }
+    }
+]