From 42fce76afb9775162ab762b75eeb9635ac6099af Mon Sep 17 00:00:00 2001
From: Jean-Baptiste <bleme@pm.me>
Date: Tue, 29 Sep 2020 13:40:31 +0200
Subject: [PATCH] Remove test_temp from git

---
 .gitignore                    |  1 +
 djangoldp/tests/runner.py     |  3 +-
 djangoldp/tests/tests_temp.py | 80 -----------------------------------
 3 files changed, 2 insertions(+), 82 deletions(-)
 delete mode 100644 djangoldp/tests/tests_temp.py

diff --git a/.gitignore b/.gitignore
index e8d72a0a..1ff4b346 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ dist
 *.egg-info
 *.pyc
 *~
+djangoldp/tests/tests_temp.py
diff --git a/djangoldp/tests/runner.py b/djangoldp/tests/runner.py
index 0886d4b8..3966fd51 100644
--- a/djangoldp/tests/runner.py
+++ b/djangoldp/tests/runner.py
@@ -24,8 +24,7 @@ failures = test_runner.run_tests([
     'djangoldp.tests.tests_sources',
     'djangoldp.tests.tests_pagination',
     'djangoldp.tests.tests_inbox',
-    'djangoldp.tests.tests_backlinks_service',
-    'djangoldp.tests.tests_temp'
+    'djangoldp.tests.tests_backlinks_service'
 
 ])
 if failures:
diff --git a/djangoldp/tests/tests_temp.py b/djangoldp/tests/tests_temp.py
deleted file mode 100644
index 206a8208..00000000
--- a/djangoldp/tests/tests_temp.py
+++ /dev/null
@@ -1,80 +0,0 @@
-import json
-
-from guardian.shortcuts import assign_perm
-
-from .models import PermissionlessDummy, Dummy, Resource, UserProfile
-from django.contrib.auth import get_user_model
-from django.test import TestCase
-from rest_framework.test import APIRequestFactory, APIClient
-
-from djangoldp.models import LDPSource
-from djangoldp.tests.models import Invoice, Circle, Conversation
-from ..permissions import LDPPermissions
-
-
-class TestTemp(TestCase):
-
-    def setUp(self):
-        self.client = APIClient()
-
-    def setUpLoggedInUser(self):
-        self.user = get_user_model().objects.create_user(username='john', email='jlennon@beatles.com',
-                                                         password='glass onion')
-        self.client.force_authenticate(user=self.user)
-
-    # optional setup for testing PermissionlessDummy model with parameterised perms
-    def setUpGuardianDummyWithPerms(self, perms=[]):
-        self.dummy = PermissionlessDummy.objects.create(some='test', slug='test')
-        model_name = PermissionlessDummy._meta.model_name
-
-        for perm in perms:
-            assign_perm(perm + '_' + model_name, self.user, self.dummy)
-
-    def tearDown(self):
-        pass
-
-    # def test_nested_container_federated_609(self):
-    #     resource = Resource.objects.create()
-    #     body = {
-    #         'http://happy-dev.fr/owl/#@id': "http://testserver/resources/{}".format(resource.pk),
-    #         'http://happy-dev.fr/owl/#joboffers': [
-    #             {
-    #                 'http://happy-dev.fr/owl/#@id': "https://external.com/job-offers/1"
-    #             },
-    #             {
-    #                 'http://happy-dev.fr/owl/#@id': "https://external.com/job-offers/2"
-    #             }
-    #         ]
-    #     }
-    #
-    #     response = self.client.put('/resources/{}/'.format(resource.pk),
-    #                                 data=json.dumps(body),
-    #                                 content_type='application/ld+json')
-    #     self.assertEqual(response.status_code, 200)
-    #     self.assertEqual(len(response.data['joboffers']['ldp:contains']), 2)
-    #
-    #     body2 = {
-    #         'http://happy-dev.fr/owl/#@id': "http://testserver/resources/{}".format(resource.pk),
-    #         'http://happy-dev.fr/owl/#joboffers': [
-    #             {
-    #                 'http://happy-dev.fr/owl/#@id': "https://external.com/job-offers/1"
-    #             },
-    #             {
-    #                 'http://happy-dev.fr/owl/#@id': "https://external.com/job-offers/3"
-    #             },
-    #             {
-    #                 'http://happy-dev.fr/owl/#@id': "https://external.com/job-offers/4"
-    #             }
-    #         ]
-    #     }
-    #     response = self.client.put('/resources/{}/'.format(resource.pk),
-    #                                 data=json.dumps(body2),
-    #                                 content_type='application/ld+json')
-    #
-    #     self.assertEqual(response.status_code, 200)
-    #     self.assertEqual(len(response.data['joboffers']['ldp:contains']), 3)
-    #
-    #     response = self.client.put('/resources/{}/job-offers'.format(resource.pk),
-    #                                data=json.dumps(body2),
-    #                                content_type='application/ld+json')
-
-- 
GitLab