Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 12 Mar 2024 14:28:50 +0100
Description: Tests are run when beeing offline so do not try to access remote locations

Index: glean-parser/tests/test_python_server.py
===================================================================
--- glean-parser.orig/tests/test_python_server.py
+++ glean-parser/tests/test_python_server.py
@@ -69,9 +69,3 @@ def test_logging(tmp_path):
         "schemas/glean/glean/glean.1.schema.json"
     )
 
-    # validate that ping payload is valid against glean schema
-    input = io.StringIO(payload)
-    output = io.StringIO()
-    assert (
-        validate_ping.validate_ping(input, output, schema_url=schema_url) == 0
-    ), output.getvalue()
Index: glean-parser/glean_parser/__init__.py
===================================================================
--- glean-parser.orig/glean_parser/__init__.py
+++ glean-parser/glean_parser/__init__.py
@@ -6,10 +6,11 @@
 
 """Top-level package for Glean parser."""
 
-import importlib.metadata
+#import importlib.metadata
+from _glean_parser_version import version as gversion
 
 try:
-    __version__ = importlib.metadata.version(__name__)
+    __version__ = gversion
 except importlib.metadata.PackageNotFoundError:
     # package is not installed
     pass
