summaryrefslogtreecommitdiffstats
path: root/res/res/resources/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'res/res/resources/tests.py')
-rw-r--r--res/res/resources/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res/resources/tests.py b/res/res/resources/tests.py
index d78e166..8d05bf5 100644
--- a/res/res/resources/tests.py
+++ b/res/res/resources/tests.py
@@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from django.test import TestCase, Client
+from django.test import TestCase
from rest_framework import status
+from rest_framework.test import APIClient
from res.pub.database.models import NfInstModel, StorageInstModel, VmInstModel, FlavourInstModel, NetworkInstModel, \
SubNetworkInstModel, CPInstModel
@@ -21,7 +22,7 @@ from res.pub.database.models import NfInstModel, StorageInstModel, VmInstModel,
class ResourceTest(TestCase):
def setUp(self):
- self.client = Client()
+ self.client = APIClient()
self.nf_inst_id = "01"
NfInstModel.objects.all().delete()
self.test_data = {