File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -575,6 +575,10 @@ def __del__(self):
575575 except ReferenceError :
576576 pass
577577
578+ def get_binding_version (self ):
579+ """ Return the current binding version """
580+ return _BINDING_VERSION
581+
578582 def get_user_agent_string (self ):
579583 """ Return the User-Agent string """
580584 return self .user_agent_string
Original file line number Diff line number Diff line change 3131 RosetteException )
3232
3333_ISPY3 = sys .version_info [0 ] == 3
34- _BINDING_VERSION = '1.8.2'
3534
3635
3736@pytest .fixture
@@ -138,7 +137,7 @@ def test_invalid_header(api):
138137
139138def test_user_agent (api ):
140139 """ Test user agent """
141- value = "RosetteAPIPython/" + _BINDING_VERSION + "/" + platform .python_version ()
140+ value = "RosetteAPIPython/" + api . get_binding_version () + "/" + platform .python_version ()
142141 assert value == api .get_user_agent_string ()
143142
144143# Test that pinging the API is working properly
You can’t perform that action at this time.
0 commit comments