pytest (#209)
This commit is contained in:
		@ -1,7 +1,7 @@
 | 
			
		||||
"""dummy tests"""
 | 
			
		||||
from django.shortcuts import reverse
 | 
			
		||||
from django.test import Client, TestCase
 | 
			
		||||
from django.utils.encoding import force_text
 | 
			
		||||
from django.utils.encoding import force_str
 | 
			
		||||
 | 
			
		||||
from passbook.core.models import User
 | 
			
		||||
from passbook.flows.models import Flow, FlowDesignation, FlowStageBinding
 | 
			
		||||
@ -44,7 +44,7 @@ class TestDummyStage(TestCase):
 | 
			
		||||
        response = self.client.post(url, {})
 | 
			
		||||
        self.assertEqual(response.status_code, 200)
 | 
			
		||||
        self.assertJSONEqual(
 | 
			
		||||
            force_text(response.content),
 | 
			
		||||
            force_str(response.content),
 | 
			
		||||
            {"type": "redirect", "to": reverse("passbook_core:overview")},
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user