@@ -23,25 +23,25 @@ def finder(self, content):
2323 return MediaTypeFinder (content )
2424
2525 def test_exact (self , finder , content ):
26- response = MockResponse ( "" , mimetype = " application/json")
26+ mimetype = " application/json"
2727
28- _ , mimetype = finder .find (response )
28+ _ , mimetype = finder .find (mimetype )
2929 assert mimetype == "application/json"
3030
3131 def test_match (self , finder , content ):
32- response = MockResponse ( "" , mimetype = " text/html")
32+ mimetype = " text/html"
3333
34- _ , mimetype = finder .find (response )
34+ _ , mimetype = finder .find (mimetype )
3535 assert mimetype == "text/*"
3636
3737 def test_not_found (self , finder , content ):
38- response = MockResponse ( "" , mimetype = " unknown")
38+ mimetype = " unknown"
3939
4040 with pytest .raises (MediaTypeNotFound ):
41- finder .find (response )
41+ finder .find (mimetype )
4242
4343 def test_missing (self , finder , content ):
44- response = MockResponse ( "" , mimetype = None )
44+ mimetype = None
4545
4646 with pytest .raises (MediaTypeNotFound ):
47- finder .find (response )
47+ finder .find (mimetype )
0 commit comments