@@ -25,7 +25,7 @@ class Tests(unittest.TestCase):
2525
2626 def test_get_all (self ):
2727 with patch (
28- "pynetbox.core.query. requests.sessions.Session.get" ,
28+ "requests.sessions.Session.get" ,
2929 return_value = Response (fixture = "{}/{}.json" .format (self .app , self .name )),
3030 ) as mock :
3131 ret = getattr (nb , self .name ).all ()
@@ -43,7 +43,7 @@ def test_get_all(self):
4343
4444 def test_filter (self ):
4545 with patch (
46- "pynetbox.core.query. requests.sessions.Session.get" ,
46+ "requests.sessions.Session.get" ,
4747 return_value = Response (fixture = "{}/{}.json" .format (self .app , self .name )),
4848 ) as mock :
4949 ret = getattr (nb , self .name ).filter (name = "test" )
@@ -61,7 +61,7 @@ def test_filter(self):
6161
6262 def test_get (self ):
6363 with patch (
64- "pynetbox.core.query. requests.sessions.Session.get" ,
64+ "requests.sessions.Session.get" ,
6565 return_value = Response (
6666 fixture = "{}/{}.json" .format (self .app , self .name [:- 1 ])
6767 ),
@@ -83,7 +83,7 @@ class UsersTestCase(Generic.Tests):
8383 name = "users"
8484
8585 @patch (
86- "pynetbox.core.query. requests.sessions.Session.get" ,
86+ "requests.sessions.Session.get" ,
8787 return_value = Response (fixture = "users/user.json" ),
8888 )
8989 def test_repr (self , _ ):
0 commit comments