chore(common): allow to run tests in virtual environment

This changes the shebang at the top of the file to allow use Python
from a virtual environment instead of hard-coding the path. This might
not be strictly necessary, but reduces confusion and doesn't hurt.
This commit is contained in:
Eberhard Beilharz 2025-04-28 11:26:18 +02:00
parent 82cb949289
commit 2ff9e309fa
No known key found for this signature in database
GPG key ID: E9140597606020D3
16 changed files with 17 additions and 16 deletions

View file

@ -40,5 +40,5 @@ test_action() {
fi
}
builder_run_action test test_action
builder_run_action test:help check-markdown "$KEYMAN_ROOT/linux/docs/help"
builder_run_action test test_action
builder_run_action test:help check-markdown "${KEYMAN_ROOT}/linux/docs/help"

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from keyman_config.bcp47tag import Bcp47Tag

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from keyman_config.canonical_language_code_utils import CanonicalLanguageCodeUtils

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from unittest.mock import patch
from keyman_config import __version__

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from unittest.mock import Mock, patch

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from gi.repository import Gio

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os
import tempfile
import unittest

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os
import unittest
from unittest import mock

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os
import tempfile
import unittest

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from unittest.mock import patch

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from unittest.mock import Mock, patch

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os
import tempfile
import unittest

View file

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import os
import shutil
import sys

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from keyman_config.standards.lang_tags_map import LangTagsMap

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os
import tempfile
import unittest

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import unittest
from unittest.mock import Mock, patch