Skip to content

Commit 725fd21

Browse files
committed
SR tests: fix Python3 and Pytest>=6.0 errors
1 parent cf5a95b commit 725fd21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/schema_registry/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _auth_matcher(cls, request):
183183

184184
# We only support the BASIC scheme today
185185
scheme, userinfo = authinfo.split(" ")
186-
if b64decode(userinfo) == cls.USERINFO:
186+
if b64decode(userinfo).decode('utf-8') == cls.USERINFO:
187187
return None
188188

189189
unauthorized = {'error_code': 401,
@@ -349,7 +349,7 @@ def post_subject_version_callback(self, request, context):
349349
return {'id': self.SCHEMA_ID}
350350

351351

352-
@pytest.fixture("package")
352+
@pytest.fixture(scope="package")
353353
def load_avsc():
354354
def get_handle(name):
355355
with open(os.path.join(work_dir, '..', 'integration', 'schema_registry',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy