diff --git a/djangoldp/tests/fixtures/test.json b/djangoldp/tests/fixtures/test.json new file mode 100644 index 0000000000000000000000000000000000000000..8ef4d849d41566c8a26e420ec5d2e370b169e4c4 --- /dev/null +++ b/djangoldp/tests/fixtures/test.json @@ -0,0 +1 @@ +[{"model": "tests.user", "pk": 0, "fields": {"username": "0aa108b0-ac32-4b25-83aa-61d0f3bace09", "email": "0aa108b0-ac32-4b25-83aa-61d0f3bace09@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 1, "fields": {"username": "cbf55040-191f-411f-b76e-eda1aac119fa", "email": "cbf55040-191f-411f-b76e-eda1aac119fa@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 2, "fields": {"username": "831483f3-f4df-4fac-9ca2-73de21503576", "email": "831483f3-f4df-4fac-9ca2-73de21503576@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 3, "fields": {"username": "9128a06f-44f0-413e-b982-f2aa3b7cd184", "email": "9128a06f-44f0-413e-b982-f2aa3b7cd184@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 4, "fields": {"username": "e7d65e2a-c3f7-4b5c-b526-d830b84801ae", "email": "e7d65e2a-c3f7-4b5c-b526-d830b84801ae@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 5, "fields": {"username": "6f77a88a-87e1-4ae1-85c9-4b97dfea0f35", "email": "6f77a88a-87e1-4ae1-85c9-4b97dfea0f35@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 6, "fields": {"username": "ac487f6f-490d-4fc2-bde7-61e1a4d8d929", "email": "ac487f6f-490d-4fc2-bde7-61e1a4d8d929@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 7, "fields": {"username": "1a99129c-7078-4ea0-b2a1-e1b8c7cb5900", "email": "1a99129c-7078-4ea0-b2a1-e1b8c7cb5900@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 8, "fields": {"username": "4e9ba38a-8d12-4e96-892c-814950ebd3e9", "email": "4e9ba38a-8d12-4e96-892c-814950ebd3e9@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 9, "fields": {"username": "e321bce8-443d-402a-ba6f-0f0de49bf81e", "email": "e321bce8-443d-402a-ba6f-0f0de49bf81e@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 10, "fields": {"username": "f9adda98-c7db-4f62-8c1c-6ac6d4099397", "email": "f9adda98-c7db-4f62-8c1c-6ac6d4099397@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 11, "fields": {"username": "278a6fef-e0b6-4024-9a30-961dc6e03c14", "email": "278a6fef-e0b6-4024-9a30-961dc6e03c14@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 12, "fields": {"username": "7eb5118c-2106-492e-b33a-8abd4828d1a3", "email": "7eb5118c-2106-492e-b33a-8abd4828d1a3@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 13, "fields": {"username": "33168abb-d071-49ce-886a-451f0f2965c6", "email": "33168abb-d071-49ce-886a-451f0f2965c6@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 14, "fields": {"username": "90da2960-f8ca-4adb-9a68-a1940e0d33da", "email": "90da2960-f8ca-4adb-9a68-a1940e0d33da@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 15, "fields": {"username": "8d882d6f-57a4-4350-8910-5914c6ee17b7", "email": "8d882d6f-57a4-4350-8910-5914c6ee17b7@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 16, "fields": {"username": "82867690-5862-4a90-bd17-1b736b334c64", "email": "82867690-5862-4a90-bd17-1b736b334c64@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 17, "fields": {"username": "809158f3-5de2-4aff-a38e-a79488836bb1", "email": "809158f3-5de2-4aff-a38e-a79488836bb1@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 18, "fields": {"username": "753466c7-aa47-47c0-bff1-4abe3d295623", "email": "753466c7-aa47-47c0-bff1-4abe3d295623@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 19, "fields": {"username": "2553f292-bf30-4152-a04a-b1451a8094f6", "email": "2553f292-bf30-4152-a04a-b1451a8094f6@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 20, "fields": {"username": "2b1fc331-c29c-48a4-baa6-ab694c35e20c", "email": "2b1fc331-c29c-48a4-baa6-ab694c35e20c@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 21, "fields": {"username": "f1fbcddf-c143-4da0-b4a8-e8bad9ad5351", "email": "f1fbcddf-c143-4da0-b4a8-e8bad9ad5351@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 22, "fields": {"username": "198cfa07-c3a3-42d0-97e2-dc620698eb39", "email": "198cfa07-c3a3-42d0-97e2-dc620698eb39@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 23, "fields": {"username": "dad03500-c7ab-4e33-abca-ecce639ba31d", "email": "dad03500-c7ab-4e33-abca-ecce639ba31d@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 24, "fields": {"username": "af0a50f5-5d92-465f-acb7-08201708ccc0", "email": "af0a50f5-5d92-465f-acb7-08201708ccc0@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 25, "fields": {"username": "2c2a27f0-63b5-407f-9fa8-292ac4e6084a", "email": "2c2a27f0-63b5-407f-9fa8-292ac4e6084a@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 26, "fields": {"username": "7a730683-8370-4d44-b79c-7f081e9d81fd", "email": "7a730683-8370-4d44-b79c-7f081e9d81fd@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 27, "fields": {"username": "9a30683c-5449-4695-ba28-d91151c14617", "email": "9a30683c-5449-4695-ba28-d91151c14617@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 28, "fields": {"username": "b3e7cc48-8d5f-46a3-a309-1d919d25ee0a", "email": "b3e7cc48-8d5f-46a3-a309-1d919d25ee0a@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 29, "fields": {"username": "558a0586-d7f6-487d-a217-81f54f956e8a", "email": "558a0586-d7f6-487d-a217-81f54f956e8a@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 30, "fields": {"username": "744a76f1-c7d1-43bc-837e-af9eb3f6a375", "email": "744a76f1-c7d1-43bc-837e-af9eb3f6a375@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 31, "fields": {"username": "c2bb6be2-e129-4fc5-a730-1f3c333bb9f5", "email": "c2bb6be2-e129-4fc5-a730-1f3c333bb9f5@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 32, "fields": {"username": "4128e6c3-6cf4-4024-b0ba-84b23f81dbf5", "email": "4128e6c3-6cf4-4024-b0ba-84b23f81dbf5@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 33, "fields": {"username": "168cab46-b344-4a70-bcb8-7b6df2bd603f", "email": "168cab46-b344-4a70-bcb8-7b6df2bd603f@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 34, "fields": {"username": "6bb9a5c4-d787-4d28-9f75-a48d2b1f21b5", "email": "6bb9a5c4-d787-4d28-9f75-a48d2b1f21b5@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 35, "fields": {"username": "fb3e291d-ec01-4804-b419-7a2c45886662", "email": "fb3e291d-ec01-4804-b419-7a2c45886662@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 36, "fields": {"username": "39ced2ff-01a8-4759-a499-a3ba9cb31b4b", "email": "39ced2ff-01a8-4759-a499-a3ba9cb31b4b@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 37, "fields": {"username": "4977cf34-7cf1-43e4-8429-2da779b88c53", "email": "4977cf34-7cf1-43e4-8429-2da779b88c53@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 38, "fields": {"username": "cd3d9639-1949-4fba-a49c-1dbc4eae27d4", "email": "cd3d9639-1949-4fba-a49c-1dbc4eae27d4@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 39, "fields": {"username": "0a2e59db-24d2-459b-b1a7-1cff1d29b5b3", "email": "0a2e59db-24d2-459b-b1a7-1cff1d29b5b3@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 40, "fields": {"username": "65ac3ab6-c822-4883-9e3f-e5efc2be9cd7", "email": "65ac3ab6-c822-4883-9e3f-e5efc2be9cd7@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 41, "fields": {"username": "7e7d40f0-21ad-4d5d-9061-0967ed843bb1", "email": "7e7d40f0-21ad-4d5d-9061-0967ed843bb1@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 42, "fields": {"username": "b6dfc515-b701-4f38-9cfd-aaa7ad3ce6c0", "email": "b6dfc515-b701-4f38-9cfd-aaa7ad3ce6c0@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 43, "fields": {"username": "a68efe51-3323-4e70-9e8b-d6b5dc0bfc09", "email": "a68efe51-3323-4e70-9e8b-d6b5dc0bfc09@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 44, "fields": {"username": "7f08a96e-fdd1-401d-9fbd-56e605e80aa0", "email": "7f08a96e-fdd1-401d-9fbd-56e605e80aa0@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 45, "fields": {"username": "76442bc9-6aba-4f36-bbd3-1871b027b85a", "email": "76442bc9-6aba-4f36-bbd3-1871b027b85a@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 46, "fields": {"username": "3e612259-dba6-4984-8337-e0bac2adba33", "email": "3e612259-dba6-4984-8337-e0bac2adba33@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 47, "fields": {"username": "7cd2e4eb-1ccc-4950-9890-2fa910b195a1", "email": "7cd2e4eb-1ccc-4950-9890-2fa910b195a1@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 48, "fields": {"username": "8e40bd09-6544-4bae-93fe-1d85d0a7b5e4", "email": "8e40bd09-6544-4bae-93fe-1d85d0a7b5e4@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 49, "fields": {"username": "9c304b18-3fc1-493a-be58-5711ff551967", "email": "9c304b18-3fc1-493a-be58-5711ff551967@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 50, "fields": {"username": "7b0ebc74-ae89-407d-bebc-300004ca629b", "email": "7b0ebc74-ae89-407d-bebc-300004ca629b@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 51, "fields": {"username": "c47bd717-d70f-44a1-9ed4-7cea4fd38d1d", "email": "c47bd717-d70f-44a1-9ed4-7cea4fd38d1d@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 52, "fields": {"username": "23ff6713-3bec-4e36-8ef6-5f2696c5a2a8", "email": "23ff6713-3bec-4e36-8ef6-5f2696c5a2a8@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 53, "fields": {"username": "7f9e9b0b-e101-491e-8616-9305bfbee30f", "email": "7f9e9b0b-e101-491e-8616-9305bfbee30f@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 54, "fields": {"username": "c53880d3-3048-41bc-b403-19e95c6b6f10", "email": "c53880d3-3048-41bc-b403-19e95c6b6f10@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 55, "fields": {"username": "3e19ab9a-6e80-4798-91ab-3a011a0d7dcc", "email": "3e19ab9a-6e80-4798-91ab-3a011a0d7dcc@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 56, "fields": {"username": "800ceaa8-d3e5-4273-9eb0-5f8ac75e31df", "email": "800ceaa8-d3e5-4273-9eb0-5f8ac75e31df@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 57, "fields": {"username": "49e9ef41-fba8-480a-a5c5-92310d87ca9e", "email": "49e9ef41-fba8-480a-a5c5-92310d87ca9e@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 58, "fields": {"username": "8acc47b6-487f-496e-930b-d4a9f8b77b32", "email": "8acc47b6-487f-496e-930b-d4a9f8b77b32@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 59, "fields": {"username": "ec8e6c88-923b-48ef-9b07-53025e65e332", "email": "ec8e6c88-923b-48ef-9b07-53025e65e332@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 60, "fields": {"username": "ffc1e14e-a277-4287-8d01-cc22dbd489d4", "email": "ffc1e14e-a277-4287-8d01-cc22dbd489d4@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 61, "fields": {"username": "029a95da-ede4-4104-8c2c-eb09ff8a5dc8", "email": "029a95da-ede4-4104-8c2c-eb09ff8a5dc8@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 62, "fields": {"username": "8cb78f60-cca3-432c-a4e1-efe681f835d0", "email": "8cb78f60-cca3-432c-a4e1-efe681f835d0@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 63, "fields": {"username": "bdcdb65b-ae9a-4e27-a7f9-5a61b8e2bd7e", "email": "bdcdb65b-ae9a-4e27-a7f9-5a61b8e2bd7e@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 64, "fields": {"username": "4d166d52-1fce-4114-9eb1-d43287e87987", "email": "4d166d52-1fce-4114-9eb1-d43287e87987@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 65, "fields": {"username": "da1f719c-a870-4454-a729-09e046c1925c", "email": "da1f719c-a870-4454-a729-09e046c1925c@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 66, "fields": {"username": "bd735bdb-ce3d-4018-83aa-d7a1d5b9c994", "email": "bd735bdb-ce3d-4018-83aa-d7a1d5b9c994@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 67, "fields": {"username": "5a9a3ae4-391d-452d-8f7a-cda68ade670d", "email": "5a9a3ae4-391d-452d-8f7a-cda68ade670d@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 68, "fields": {"username": "4747b1a7-96ce-4e06-beec-0f647566c2c8", "email": "4747b1a7-96ce-4e06-beec-0f647566c2c8@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 69, "fields": {"username": "049a89b5-78d9-4de1-987f-4550ba44b556", "email": "049a89b5-78d9-4de1-987f-4550ba44b556@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 70, "fields": {"username": "b5bc7034-1ca0-4d8a-9eca-2554897ece94", "email": "b5bc7034-1ca0-4d8a-9eca-2554897ece94@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 71, "fields": {"username": "ad8e195c-14a7-462f-a114-ba06d438704d", "email": "ad8e195c-14a7-462f-a114-ba06d438704d@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 72, "fields": {"username": "ff8b9ecc-32a0-4078-b8b1-ee5f83e3fd50", "email": "ff8b9ecc-32a0-4078-b8b1-ee5f83e3fd50@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 73, "fields": {"username": "f0da35f1-7730-4aee-bec0-b920518d3207", "email": "f0da35f1-7730-4aee-bec0-b920518d3207@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 74, "fields": {"username": "b1472c49-89b5-4a9a-9104-eb273e2e9069", "email": "b1472c49-89b5-4a9a-9104-eb273e2e9069@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 75, "fields": {"username": "f7a91d8f-62e2-4db2-bc4a-fc92ba568d81", "email": "f7a91d8f-62e2-4db2-bc4a-fc92ba568d81@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 76, "fields": {"username": "920d8ba1-7910-4609-a446-f04ce6cfa29d", "email": "920d8ba1-7910-4609-a446-f04ce6cfa29d@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 77, "fields": {"username": "b2063213-8ecd-46c7-a3b3-1bb93b654a2f", "email": "b2063213-8ecd-46c7-a3b3-1bb93b654a2f@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 78, "fields": {"username": "743f1630-2570-42ca-9697-769daefbb80a", "email": "743f1630-2570-42ca-9697-769daefbb80a@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 79, "fields": {"username": "81441be8-5593-408c-a619-3b3236a8a5a7", "email": "81441be8-5593-408c-a619-3b3236a8a5a7@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 80, "fields": {"username": "dea5991e-f3d9-460a-9d99-6b05a7fcaa96", "email": "dea5991e-f3d9-460a-9d99-6b05a7fcaa96@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 81, "fields": {"username": "c77f5bc5-68a6-4347-86b6-068e3fa3837b", "email": "c77f5bc5-68a6-4347-86b6-068e3fa3837b@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 82, "fields": {"username": "92dd70c3-73ca-4296-9dff-47b30170873e", "email": "92dd70c3-73ca-4296-9dff-47b30170873e@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 83, "fields": {"username": "a6bbe80d-62e9-4b52-bc89-45c4c05e3b5f", "email": "a6bbe80d-62e9-4b52-bc89-45c4c05e3b5f@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 84, "fields": {"username": "aea2bce7-3060-4352-98b3-2e2f10fc17bb", "email": "aea2bce7-3060-4352-98b3-2e2f10fc17bb@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 85, "fields": {"username": "a9d121b2-4666-4907-b92b-beb9d9f8c6e0", "email": "a9d121b2-4666-4907-b92b-beb9d9f8c6e0@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 86, "fields": {"username": "0370f5dc-2be7-4eb7-86c5-a60cdabc8f5f", "email": "0370f5dc-2be7-4eb7-86c5-a60cdabc8f5f@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 87, "fields": {"username": "e638154f-4b3f-4ddb-b232-7dc863d1cd24", "email": "e638154f-4b3f-4ddb-b232-7dc863d1cd24@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 88, "fields": {"username": "6c14a693-07ca-4320-a0bc-0a9a2eb34fd5", "email": "6c14a693-07ca-4320-a0bc-0a9a2eb34fd5@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 89, "fields": {"username": "8de347cf-7d58-4786-9c42-23e123338a58", "email": "8de347cf-7d58-4786-9c42-23e123338a58@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 90, "fields": {"username": "6417a54c-4387-4a0c-b2f2-ea810580be6e", "email": "6417a54c-4387-4a0c-b2f2-ea810580be6e@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 91, "fields": {"username": "47c2c5c4-d652-494b-8a40-977967833c4b", "email": "47c2c5c4-d652-494b-8a40-977967833c4b@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 92, "fields": {"username": "38804e9f-706a-4e5f-b0de-0093fa594985", "email": "38804e9f-706a-4e5f-b0de-0093fa594985@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 93, "fields": {"username": "af695126-59ed-4011-85fc-fe273e2baa3f", "email": "af695126-59ed-4011-85fc-fe273e2baa3f@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 94, "fields": {"username": "42661749-8625-4226-a079-d5bf37a6a82e", "email": "42661749-8625-4226-a079-d5bf37a6a82e@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 95, "fields": {"username": "1b0c858e-8ba2-455c-b279-ae9aa3006204", "email": "1b0c858e-8ba2-455c-b279-ae9aa3006204@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 96, "fields": {"username": "6aa5798b-06f5-4d3c-94d1-e8accd0d671a", "email": "6aa5798b-06f5-4d3c-94d1-e8accd0d671a@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 97, "fields": {"username": "6442d706-3f40-4b5e-8224-3e26533a4e75", "email": "6442d706-3f40-4b5e-8224-3e26533a4e75@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 98, "fields": {"username": "37253c37-5c52-4644-9a9a-abcd3fc63a13", "email": "37253c37-5c52-4644-9a9a-abcd3fc63a13@c.coop", "password": "glass onion"}}, {"model": "tests.user", "pk": 99, "fields": {"username": "ad9f4d89-609a-40f7-8d3c-09a20f650e97", "email": "ad9f4d89-609a-40f7-8d3c-09a20f650e97@c.coop", "password": "glass onion"}}, {"model": "tests.project", "pk": 0, "fields": {"description": "Test", "team": [70, 22, 9, 97, 92, 47, 98, 80]}}, {"model": "tests.project", "pk": 1, "fields": {"description": "Test", "team": [22, 29, 34, 27]}}, {"model": "tests.project", "pk": 2, "fields": {"description": "Test", "team": [5, 38, 81, 15, 48, 11, 9, 34, 41]}}, {"model": "tests.project", "pk": 3, "fields": {"description": "Test", "team": [36]}}, {"model": "tests.project", "pk": 4, "fields": {"description": "Test", "team": [9, 22, 49, 6, 77, 64, 73, 81, 83]}}, {"model": "tests.project", "pk": 5, "fields": {"description": "Test", "team": [30, 69, 54, 28, 75, 47, 82, 15, 65, 72]}}, {"model": "tests.project", "pk": 6, "fields": {"description": "Test", "team": [74, 18, 54, 78]}}, {"model": "tests.project", "pk": 7, "fields": {"description": "Test", "team": [22, 85, 47, 92]}}, {"model": "tests.project", "pk": 8, "fields": {"description": "Test", "team": [4, 46, 59, 99, 7]}}, {"model": "tests.project", "pk": 9, "fields": {"description": "Test", "team": [86, 20, 61, 87, 36, 1, 36, 61, 32]}}, {"model": "tests.project", "pk": 10, "fields": {"description": "Test", "team": [86, 28, 49, 31, 41, 57, 36]}}, {"model": "tests.project", "pk": 11, "fields": {"description": "Test", "team": [4, 76, 71, 89, 99, 31, 20]}}, {"model": "tests.project", "pk": 12, "fields": {"description": "Test", "team": [90, 67, 70, 62]}}, {"model": "tests.project", "pk": 13, "fields": {"description": "Test", "team": [61, 33, 55, 68, 12, 20, 38, 13, 72, 73]}}, {"model": "tests.project", "pk": 14, "fields": {"description": "Test", "team": [46, 46, 11, 88]}}, {"model": "tests.project", "pk": 15, "fields": {"description": "Test", "team": [49, 98, 15, 21, 62]}}, {"model": "tests.project", "pk": 16, "fields": {"description": "Test", "team": [51, 9, 11, 78, 6, 31, 15]}}, {"model": "tests.project", "pk": 17, "fields": {"description": "Test", "team": [71, 3, 53, 93, 32, 30, 45, 24, 45, 36]}}, {"model": "tests.project", "pk": 18, "fields": {"description": "Test", "team": [21, 87, 36, 34]}}, {"model": "tests.project", "pk": 19, "fields": {"description": "Test", "team": [51, 44, 27, 12, 67, 35, 37]}}, {"model": "tests.project", "pk": 20, "fields": {"description": "Test", "team": [23]}}, {"model": "tests.project", "pk": 21, "fields": {"description": "Test", "team": [56, 79, 93, 87, 65, 1, 20, 32]}}, {"model": "tests.project", "pk": 22, "fields": {"description": "Test", "team": [61, 43, 77, 26]}}, {"model": "tests.project", "pk": 23, "fields": {"description": "Test", "team": [10, 72, 57, 13, 85, 53]}}, {"model": "tests.project", "pk": 24, "fields": {"description": "Test", "team": [80, 1, 8, 50, 16, 16, 87, 89, 32]}}, {"model": "tests.project", "pk": 25, "fields": {"description": "Test", "team": [76, 65, 74, 62, 37, 33, 56, 13, 93, 2]}}, {"model": "tests.project", "pk": 26, "fields": {"description": "Test", "team": [38, 81]}}, {"model": "tests.project", "pk": 27, "fields": {"description": "Test", "team": [58, 82, 97, 81, 31, 70, 78, 55]}}, {"model": "tests.project", "pk": 28, "fields": {"description": "Test", "team": [76, 40, 22, 67, 2, 94]}}, {"model": "tests.project", "pk": 29, "fields": {"description": "Test", "team": [26, 43, 2, 81, 25, 57, 10, 65, 42, 45]}}, {"model": "tests.project", "pk": 30, "fields": {"description": "Test", "team": [6, 87, 38, 33, 88, 25, 64]}}, {"model": "tests.project", "pk": 31, "fields": {"description": "Test", "team": [91, 53, 82, 8, 34, 43, 19, 52, 92]}}, {"model": "tests.project", "pk": 32, "fields": {"description": "Test", "team": [93, 79, 40, 47, 81, 7]}}, {"model": "tests.project", "pk": 33, "fields": {"description": "Test", "team": [59, 43]}}, {"model": "tests.project", "pk": 34, "fields": {"description": "Test", "team": [73, 69]}}, {"model": "tests.project", "pk": 35, "fields": {"description": "Test", "team": [19, 41, 85, 39, 79, 6]}}, {"model": "tests.project", "pk": 36, "fields": {"description": "Test", "team": [10, 40, 89, 50, 18, 16]}}, {"model": "tests.project", "pk": 37, "fields": {"description": "Test", "team": [28, 17, 48, 52, 24, 69, 16, 21]}}, {"model": "tests.project", "pk": 38, "fields": {"description": "Test", "team": [37, 44, 18, 82, 23, 87, 63, 82, 19, 19]}}, {"model": "tests.project", "pk": 39, "fields": {"description": "Test", "team": [88, 69, 30, 66, 7]}}, {"model": "tests.project", "pk": 40, "fields": {"description": "Test", "team": [68]}}, {"model": "tests.project", "pk": 41, "fields": {"description": "Test", "team": [3, 83]}}, {"model": "tests.project", "pk": 42, "fields": {"description": "Test", "team": [52, 59, 88, 50]}}, {"model": "tests.project", "pk": 43, "fields": {"description": "Test", "team": [59, 83, 60, 64, 54, 59, 2, 68, 14]}}, {"model": "tests.project", "pk": 44, "fields": {"description": "Test", "team": [13, 37, 72, 40, 75, 14, 93, 73, 93, 96]}}, {"model": "tests.project", "pk": 45, "fields": {"description": "Test", "team": [36]}}, {"model": "tests.project", "pk": 46, "fields": {"description": "Test", "team": [94, 95, 32, 73, 68, 28, 7, 39, 56, 88]}}, {"model": "tests.project", "pk": 47, "fields": {"description": "Test", "team": [40, 88, 9, 5, 44, 35]}}, {"model": "tests.project", "pk": 48, "fields": {"description": "Test", "team": [15, 97, 88, 84, 46, 6, 34, 3, 39]}}, {"model": "tests.project", "pk": 49, "fields": {"description": "Test", "team": [46, 76, 14]}}, {"model": "tests.project", "pk": 50, "fields": {"description": "Test", "team": [15, 2, 75, 29]}}, {"model": "tests.project", "pk": 51, "fields": {"description": "Test", "team": [36, 54, 9, 79, 99, 2, 11, 49, 72, 69]}}, {"model": "tests.project", "pk": 52, "fields": {"description": "Test", "team": [60, 15, 93]}}, {"model": "tests.project", "pk": 53, "fields": {"description": "Test", "team": [1]}}, {"model": "tests.project", "pk": 54, "fields": {"description": "Test", "team": [78]}}, {"model": "tests.project", "pk": 55, "fields": {"description": "Test", "team": [86, 71, 86, 27, 71, 88, 67, 21]}}, {"model": "tests.project", "pk": 56, "fields": {"description": "Test", "team": [11, 62, 50, 65, 70, 68, 89, 96]}}, {"model": "tests.project", "pk": 57, "fields": {"description": "Test", "team": [21, 40, 62]}}, {"model": "tests.project", "pk": 58, "fields": {"description": "Test", "team": [58, 96, 54, 70, 49, 37, 4, 88, 92, 70]}}, {"model": "tests.project", "pk": 59, "fields": {"description": "Test", "team": [37, 34, 16, 14, 63]}}, {"model": "tests.project", "pk": 60, "fields": {"description": "Test", "team": [17, 25, 94, 36]}}, {"model": "tests.project", "pk": 61, "fields": {"description": "Test", "team": [81]}}, {"model": "tests.project", "pk": 62, "fields": {"description": "Test", "team": [78, 43]}}, {"model": "tests.project", "pk": 63, "fields": {"description": "Test", "team": [93, 55, 16, 90, 60]}}, {"model": "tests.project", "pk": 64, "fields": {"description": "Test", "team": [32, 84]}}, {"model": "tests.project", "pk": 65, "fields": {"description": "Test", "team": [11, 34, 88, 76, 38, 17, 43]}}, {"model": "tests.project", "pk": 66, "fields": {"description": "Test", "team": [2, 97, 17, 94, 43, 80, 23, 14, 16, 95]}}, {"model": "tests.project", "pk": 67, "fields": {"description": "Test", "team": [5, 96, 49, 36, 27, 74, 30]}}, {"model": "tests.project", "pk": 68, "fields": {"description": "Test", "team": [33, 34, 2, 7, 20, 9, 90, 2]}}, {"model": "tests.project", "pk": 69, "fields": {"description": "Test", "team": [60, 21, 87]}}, {"model": "tests.project", "pk": 70, "fields": {"description": "Test", "team": [35, 57, 41, 27, 2]}}, {"model": "tests.project", "pk": 71, "fields": {"description": "Test", "team": [96, 7, 68, 43, 2, 1, 47]}}, {"model": "tests.project", "pk": 72, "fields": {"description": "Test", "team": [81, 68]}}, {"model": "tests.project", "pk": 73, "fields": {"description": "Test", "team": [77, 83, 35, 97, 30, 27, 69, 91, 33, 80]}}, {"model": "tests.project", "pk": 74, "fields": {"description": "Test", "team": [8]}}, {"model": "tests.project", "pk": 75, "fields": {"description": "Test", "team": [6, 41, 42, 43, 94, 48]}}, {"model": "tests.project", "pk": 76, "fields": {"description": "Test", "team": [53]}}, {"model": "tests.project", "pk": 77, "fields": {"description": "Test", "team": [99, 7, 63, 18, 64, 30]}}, {"model": "tests.project", "pk": 78, "fields": {"description": "Test", "team": [5, 78, 12, 76, 60, 61, 62, 93, 38, 65]}}, {"model": "tests.project", "pk": 79, "fields": {"description": "Test", "team": [57, 73, 55, 43, 38, 73, 10, 15, 44, 98]}}, {"model": "tests.project", "pk": 80, "fields": {"description": "Test", "team": [56, 67, 82, 24, 42, 51, 88, 80, 27, 20]}}, {"model": "tests.project", "pk": 81, "fields": {"description": "Test", "team": [87, 87, 35]}}, {"model": "tests.project", "pk": 82, "fields": {"description": "Test", "team": [28, 28, 21, 23, 94]}}, {"model": "tests.project", "pk": 83, "fields": {"description": "Test", "team": [98]}}, {"model": "tests.project", "pk": 84, "fields": {"description": "Test", "team": [96, 66, 31, 80, 69, 97, 55, 59]}}, {"model": "tests.project", "pk": 85, "fields": {"description": "Test", "team": [60]}}, {"model": "tests.project", "pk": 86, "fields": {"description": "Test", "team": [8, 67, 51, 79, 46, 81]}}, {"model": "tests.project", "pk": 87, "fields": {"description": "Test", "team": [40, 60, 2, 77, 76, 36, 96, 53]}}, {"model": "tests.project", "pk": 88, "fields": {"description": "Test", "team": [63, 32, 81, 24, 18, 12, 35]}}, {"model": "tests.project", "pk": 89, "fields": {"description": "Test", "team": [28, 55, 68, 40, 74, 32, 80, 56]}}, {"model": "tests.project", "pk": 90, "fields": {"description": "Test", "team": [77, 80, 64, 3, 77, 78, 32, 40]}}, {"model": "tests.project", "pk": 91, "fields": {"description": "Test", "team": [77, 83, 74, 83, 43, 67]}}, {"model": "tests.project", "pk": 92, "fields": {"description": "Test", "team": [52, 73, 68, 49, 14, 88, 97, 8, 65, 34]}}, {"model": "tests.project", "pk": 93, "fields": {"description": "Test", "team": [76, 67, 9]}}, {"model": "tests.project", "pk": 94, "fields": {"description": "Test", "team": [32, 45]}}, {"model": "tests.project", "pk": 95, "fields": {"description": "Test", "team": [25, 73, 8, 51]}}, {"model": "tests.project", "pk": 96, "fields": {"description": "Test", "team": [88, 94, 64, 87, 35, 40, 12, 44, 59]}}, {"model": "tests.project", "pk": 97, "fields": {"description": "Test", "team": [84, 53, 16, 45, 26]}}, {"model": "tests.project", "pk": 98, "fields": {"description": "Test", "team": [52, 82, 23, 59, 90, 49, 59, 47, 57, 8]}}, {"model": "tests.project", "pk": 99, "fields": {"description": "Test", "team": [73, 75, 38, 17, 9, 22]}}] \ No newline at end of file diff --git a/djangoldp/tests/scripts/test_data_generator.py b/djangoldp/tests/scripts/test_data_generator.py new file mode 100644 index 0000000000000000000000000000000000000000..8cc20968c6eba7ed11b8b8bcde2164960ff5b6d9 --- /dev/null +++ b/djangoldp/tests/scripts/test_data_generator.py @@ -0,0 +1,63 @@ +import uuid +import json +import sys +import random +from pathlib import Path +from copy import deepcopy + +''' +A script which generates and outputs random test data, into a file used by the performance unit tests +''' + +count = int(sys.argv[1]) +fixture = list() + +user_template = { + 'model': 'tests.user', + 'pk': 0, + 'fields': { + 'username': 'john', + 'email': 'jlennon@c.coop', + 'password':'glass onion' + } +} + +project_template = { + 'model': 'tests.project', + 'pk': 0, + 'fields': { + 'description': 'Test' + } +} + +def generate_user(i): + user = deepcopy(user_template) + user['pk'] = i + user['fields']['username'] = str(uuid.uuid4()) + user['fields']['email'] = user['fields']['username'] + "@c.coop" + return user + +def generate_project(i): + project = deepcopy(project_template) + project['pk'] = i + project['fields']['team'] = list() + + # append random number of users, max 10 for a single project + for j in range(random.randint(1, 10)): + project['fields']['team'].append(random.randint(1, count-1)) + return project + +# create N users +for i in range(count): + user = generate_user(i) + fixture.append(user) + +# create N projects +for i in range(count): + project = generate_project(i) + fixture.append(project) + +with open(Path(__file__).parent / "../fixtures/test.json", 'w') as output: + json.dump(fixture, output) + +print(str(count)) diff --git a/djangoldp/tests/tests_performance.py b/djangoldp/tests/tests_performance.py new file mode 100644 index 0000000000000000000000000000000000000000..44621fd7300bf574c44b00e652f1f5802b015eb4 --- /dev/null +++ b/djangoldp/tests/tests_performance.py @@ -0,0 +1,10 @@ +from rest_framework.test import APIClient, APITestCase +from djangoldp.tests.models import User, Project + + +class TestsInbox(APITestCase): + fixtures = ['test.json',] + + def test_populated(self): + self.assertEqual(User.objects.count(), 100) + self.assertEqual(Project.objects.count(), 100)