Loading src/opticalattackdetector/.gitlab-ci.yml +1 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ unit_test opticalattackdetector: after_script: - docker rm -f $IMAGE_NAME - docker rm -f redis - docker rm -f dbscanserving - docker network rm teraflowbridge rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' Loading src/opticalattackdetector/tests/test_unitary.py +5 −2 Original line number Diff line number Diff line Loading @@ -43,8 +43,11 @@ def optical_attack_detector_service(): @pytest.fixture(scope="session") def optical_attack_detector_client(optical_attack_detector_service): _client = OpticalAttackDetectorClient() def optical_attack_detector_client(optical_attack_detector_service: OpticalAttackDetectorService): _client = OpticalAttackDetectorClient( host=optical_attack_detector_service.bind_address, port=optical_attack_detector_service.bind_port, ) yield _client _client.close() Loading Loading
src/opticalattackdetector/.gitlab-ci.yml +1 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ unit_test opticalattackdetector: after_script: - docker rm -f $IMAGE_NAME - docker rm -f redis - docker rm -f dbscanserving - docker network rm teraflowbridge rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' Loading
src/opticalattackdetector/tests/test_unitary.py +5 −2 Original line number Diff line number Diff line Loading @@ -43,8 +43,11 @@ def optical_attack_detector_service(): @pytest.fixture(scope="session") def optical_attack_detector_client(optical_attack_detector_service): _client = OpticalAttackDetectorClient() def optical_attack_detector_client(optical_attack_detector_service: OpticalAttackDetectorService): _client = OpticalAttackDetectorClient( host=optical_attack_detector_service.bind_address, port=optical_attack_detector_service.bind_port, ) yield _client _client.close() Loading