Skip to content
Snippets Groups Projects
Commit 2263618d authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'L2SS-1837' into 'main'

L2SS-1837: Goodbye stestr

Closes L2SS-1837

See merge request !9
parents 397b73d1 8cd7ebbc
No related branches found
No related tags found
1 merge request!9L2SS-1837: Goodbye stestr
Pipeline #85099 passed with warnings
Pipeline: Stingray

#85100

    ......@@ -127,14 +127,10 @@ docker_build:
    run_integration_tests:
    stage: integration
    allow_failure: true
    needs:
    - package_files
    script:
    - echo "make sure to move out of source dir"
    - echo "install package from filesystem (or use the artefact)"
    - echo "run against foreign systems (e.g. databases, cwl etc.)"
    - exit 1
    - tox -e integration
    publish_on_gitlab:
    stage: publish
    ......
    File moved
    # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy)
    # SPDX-License-Identifier: Apache-2.0
    """Testing of importing parts of installed package"""
    from unittest import TestCase
    # pylint: disable=import-outside-toplevel
    class ImportTest(TestCase):
    """Test cases for imports"""
    def test_import_version(self):
    """Test importing version string"""
    try:
    from lofar_stingray import __version__
    except ImportError:
    __version__ = None
    self.assertIsNotNone(__version__)
    ......@@ -30,14 +30,28 @@ usedevelop = False
    envdir = {toxworkdir}/linting
    commands =
    pep8: {envpython} -m flake8 --version
    pep8: {envpython} -m flake8 lofar_stingray tests
    pep8: {envpython} -m flake8 lofar_stingray tests integration
    black: {envpython} -m black --version
    black: {envpython} -m black --check --diff lofar_stingray tests
    black: {envpython} -m black --check --diff lofar_stingray tests integration
    pylint: {envpython} -m pylint --version
    pylint: {envpython} -m pylint lofar_stingray tests
    pylint: {envpython} -m pylint lofar_stingray tests integration
    format: {envpython} -m autopep8 -v -aa --in-place --recursive lofar_stingray
    format: {envpython} -m autopep8 -v -aa --in-place --recursive tests
    format: {envpython} -m black -v lofar_stingray tests
    format: {envpython} -m autopep8 -v -aa --in-place --recursive integration
    format: {envpython} -m black -v lofar_stingray tests integration
    [testenv:integration]
    # Do no install the lofar station client package, force packaged version install
    skip_install = true
    # Intentionally break import paths if not installed from package
    changedir={toxinidir}/integration
    # Allow bash for wheel file substitution
    allowlist_externals =
    bash
    commands =
    # We need the bash substitutions here
    bash -ec 'pip install --force-reinstall {toxinidir}/dist/*.whl'
    {envpython} -m pytest -v --log-level=DEBUG ./
    [testenv:docs]
    deps =
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment