10 lines
		
	
	
		
			377 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			377 B
		
	
	
	
		
			Python
		
	
	
	
| from django.urls import reverse
 | |
| from django.test import TestCase
 | |
| from rest_framework.test import APITestCase
 | |
| from rest_framework import status
 | |
| # Create your tests here.
 | |
| class WareHouseTests(APITestCase):
 | |
|     def test_list_warehouse(self):
 | |
|         url = reverse('warehouse-list')
 | |
|         resp = self.client.get(url)
 | |
|         self.assertEqual(resp.status_code, status.HTTP_200_OK) |