Clone
1
run 2155 TEST commit ae70d9b
ci-bot edited this page 2025-08-12 14:46:56 +00:00

Test Report

View CI Run 2155 | Commit ae70d9b

🧪 Test Report

Generated on 2025-08-12 16:46:32 CEST

🧾 General Info

  • duration: 44.98698687553406
  • root: /workspace/tligui_y/slic
  • environment: {}

📋 Summary

  • Failed: 25
  • Total: 25
  • Collected: 25

🔎 Tests

Failed (25)
  • 📄 test_utils_reprate.py

    Function: test_get_beamline

    • Test 1
      params: instrument="alvra", expected_beamline="aramis"

      📌 Runtime Parameters

      params:
        instrument: alvra
        expected_beamline: aramis
      id: alvra-aramis
      

      📌 Setup phase

      duration:

      0.0006251591257750988
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00019574910402297974
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 17
      message: NameError: name 'get_beamline' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 17
        message: NameError
      

      longrepr:

      instrument = 'alvra', expected_beamline = 'aramis'
      
          @pytest.mark.parametrize("instrument,expected_beamline", [
              ("alvra", "aramis"),
              ("bernina", "aramis"),
              ("cristallina", "aramis"),
              ("diavolezza", "athos"),
              ("maloja", "athos"),
              ("furka", "athos")
          ])
          def test_get_beamline(instrument, expected_beamline):
              """Test the beamline retrieval for a given instrument."""
      >       beamline = get_beamline(instrument)
      E       NameError: name 'get_beamline' is not defined
      
      tests/test_utils_reprate.py:17: NameError
      

      📌 Teardown phase

      duration:

      0.00036884984001517296
      

      outcome:

      passed
      
    • Test 2
      params: instrument="bernina", expected_beamline="aramis"

      📌 Runtime Parameters

      params:
        instrument: bernina
        expected_beamline: aramis
      id: bernina-aramis
      

      📌 Setup phase

      duration:

      0.00027963612228631973
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00017753895372152328
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 17
      message: NameError: name 'get_beamline' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 17
        message: NameError
      

      longrepr:

      instrument = 'bernina', expected_beamline = 'aramis'
      
          @pytest.mark.parametrize("instrument,expected_beamline", [
              ("alvra", "aramis"),
              ("bernina", "aramis"),
              ("cristallina", "aramis"),
              ("diavolezza", "athos"),
              ("maloja", "athos"),
              ("furka", "athos")
          ])
          def test_get_beamline(instrument, expected_beamline):
              """Test the beamline retrieval for a given instrument."""
      >       beamline = get_beamline(instrument)
      E       NameError: name 'get_beamline' is not defined
      
      tests/test_utils_reprate.py:17: NameError
      

      📌 Teardown phase

      duration:

      0.00018078181892633438
      

      outcome:

      passed
      
    • Test 3
      params: instrument="cristallina", expected_beamline="aramis"

      📌 Runtime Parameters

      params:
        instrument: cristallina
        expected_beamline: aramis
      id: cristallina-aramis
      

      📌 Setup phase

      duration:

      0.0002489369362592697
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015116296708583832
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 17
      message: NameError: name 'get_beamline' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 17
        message: NameError
      

      longrepr:

      instrument = 'cristallina', expected_beamline = 'aramis'
      
          @pytest.mark.parametrize("instrument,expected_beamline", [
              ("alvra", "aramis"),
              ("bernina", "aramis"),
              ("cristallina", "aramis"),
              ("diavolezza", "athos"),
              ("maloja", "athos"),
              ("furka", "athos")
          ])
          def test_get_beamline(instrument, expected_beamline):
              """Test the beamline retrieval for a given instrument."""
      >       beamline = get_beamline(instrument)
      E       NameError: name 'get_beamline' is not defined
      
      tests/test_utils_reprate.py:17: NameError
      

      📌 Teardown phase

      duration:

      0.0001728772185742855
      

      outcome:

      passed
      
    • Test 4
      params: instrument="diavolezza", expected_beamline="athos"

      📌 Runtime Parameters

      params:
        instrument: diavolezza
        expected_beamline: athos
      id: diavolezza-athos
      

      📌 Setup phase

      duration:

      0.0002289717085659504
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014679599553346634
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 17
      message: NameError: name 'get_beamline' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 17
        message: NameError
      

      longrepr:

      instrument = 'diavolezza', expected_beamline = 'athos'
      
          @pytest.mark.parametrize("instrument,expected_beamline", [
              ("alvra", "aramis"),
              ("bernina", "aramis"),
              ("cristallina", "aramis"),
              ("diavolezza", "athos"),
              ("maloja", "athos"),
              ("furka", "athos")
          ])
          def test_get_beamline(instrument, expected_beamline):
              """Test the beamline retrieval for a given instrument."""
      >       beamline = get_beamline(instrument)
      E       NameError: name 'get_beamline' is not defined
      
      tests/test_utils_reprate.py:17: NameError
      

      📌 Teardown phase

      duration:

      0.00017174100503325462
      

      outcome:

      passed
      
    • Test 5
      params: instrument="maloja", expected_beamline="athos"

      📌 Runtime Parameters

      params:
        instrument: maloja
        expected_beamline: athos
      id: maloja-athos
      

      📌 Setup phase

      duration:

      0.0002244538627564907
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014678901061415672
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 17
      message: NameError: name 'get_beamline' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 17
        message: NameError
      

      longrepr:

      instrument = 'maloja', expected_beamline = 'athos'
      
          @pytest.mark.parametrize("instrument,expected_beamline", [
              ("alvra", "aramis"),
              ("bernina", "aramis"),
              ("cristallina", "aramis"),
              ("diavolezza", "athos"),
              ("maloja", "athos"),
              ("furka", "athos")
          ])
          def test_get_beamline(instrument, expected_beamline):
              """Test the beamline retrieval for a given instrument."""
      >       beamline = get_beamline(instrument)
      E       NameError: name 'get_beamline' is not defined
      
      tests/test_utils_reprate.py:17: NameError
      

      📌 Teardown phase

      duration:

      0.00018551573157310486
      

      outcome:

      passed
      
    • Test 6
      params: instrument="furka", expected_beamline="athos"

      📌 Runtime Parameters

      params:
        instrument: furka
        expected_beamline: athos
      id: furka-athos
      

      📌 Setup phase

      duration:

      0.00022587599232792854
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015553878620266914
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 17
      message: NameError: name 'get_beamline' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 17
        message: NameError
      

      longrepr:

      instrument = 'furka', expected_beamline = 'athos'
      
          @pytest.mark.parametrize("instrument,expected_beamline", [
              ("alvra", "aramis"),
              ("bernina", "aramis"),
              ("cristallina", "aramis"),
              ("diavolezza", "athos"),
              ("maloja", "athos"),
              ("furka", "athos")
          ])
          def test_get_beamline(instrument, expected_beamline):
              """Test the beamline retrieval for a given instrument."""
      >       beamline = get_beamline(instrument)
      E       NameError: name 'get_beamline' is not defined
      
      tests/test_utils_reprate.py:17: NameError
      

      📌 Teardown phase

      duration:

      0.00017277291044592857
      

      outcome:

      passed
      

    Function: test_get_pvname_reprate_for_inferred_beamline

    • Test 7

      📌 Setup phase

      duration:

      0.0001168171875178814
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014580925926566124
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 23
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 23
        message: NameError
      

      longrepr:

      def test_get_pvname_reprate_for_inferred_beamline():
              """Test the PV name retrieval when using inferred beamline based on IP address."""
              # Mock the socket to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value="129.129.242"):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:23: NameError
      

      📌 Teardown phase

      duration:

      0.00014422880485653877
      

      outcome:

      passed
      

    Function: test_infer_beamline_from_ip

    • Test 8
      params: ip="129.129.242", expected_instrument="alvra"

      📌 Runtime Parameters

      params:
        ip: 129.129.242
        expected_instrument: alvra
      id: 129.129.242-alvra
      

      📌 Setup phase

      duration:

      0.00023102527484297752
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00016229692846536636
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 39
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 39
        message: NameError
      

      longrepr:

      ip = '129.129.242', expected_instrument = 'alvra'
      
          @pytest.mark.parametrize("ip,expected_instrument", [
              ("129.129.242", "alvra"),
              ("129.129.243", "bernina"),
              ("129.129.244", "cristallina"),
              ("129.129.245", "diavolezza"),
              ("129.129.246", "maloja"),
              ("129.129.247", "furka")
          ])
          def test_infer_beamline_from_ip(ip, expected_instrument):
              """Test that the beamline is correctly inferred based on the IP address."""
              # Mock the socket functions to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value=ip):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:39: NameError
      

      📌 Teardown phase

      duration:

      0.00017371680587530136
      

      outcome:

      passed
      
    • Test 9
      params: ip="129.129.243", expected_instrument="bernina"

      📌 Runtime Parameters

      params:
        ip: 129.129.243
        expected_instrument: bernina
      id: 129.129.243-bernina
      

      📌 Setup phase

      duration:

      0.00022310297936201096
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015955884009599686
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 39
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 39
        message: NameError
      

      longrepr:

      ip = '129.129.243', expected_instrument = 'bernina'
      
          @pytest.mark.parametrize("ip,expected_instrument", [
              ("129.129.242", "alvra"),
              ("129.129.243", "bernina"),
              ("129.129.244", "cristallina"),
              ("129.129.245", "diavolezza"),
              ("129.129.246", "maloja"),
              ("129.129.247", "furka")
          ])
          def test_infer_beamline_from_ip(ip, expected_instrument):
              """Test that the beamline is correctly inferred based on the IP address."""
              # Mock the socket functions to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value=ip):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:39: NameError
      

      📌 Teardown phase

      duration:

      0.00016975589096546173
      

      outcome:

      passed
      
    • Test 10
      params: ip="129.129.244", expected_instrument="cristallina"

      📌 Runtime Parameters

      params:
        ip: 129.129.244
        expected_instrument: cristallina
      id: 129.129.244-cristallina
      

      📌 Setup phase

      duration:

      0.00022522499784827232
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015114014968276024
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 39
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 39
        message: NameError
      

      longrepr:

      ip = '129.129.244', expected_instrument = 'cristallina'
      
          @pytest.mark.parametrize("ip,expected_instrument", [
              ("129.129.242", "alvra"),
              ("129.129.243", "bernina"),
              ("129.129.244", "cristallina"),
              ("129.129.245", "diavolezza"),
              ("129.129.246", "maloja"),
              ("129.129.247", "furka")
          ])
          def test_infer_beamline_from_ip(ip, expected_instrument):
              """Test that the beamline is correctly inferred based on the IP address."""
              # Mock the socket functions to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value=ip):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:39: NameError
      

      📌 Teardown phase

      duration:

      0.00016904156655073166
      

      outcome:

      passed
      
    • Test 11
      params: ip="129.129.245", expected_instrument="diavolezza"

      📌 Runtime Parameters

      params:
        ip: 129.129.245
        expected_instrument: diavolezza
      id: 129.129.245-diavolezza
      

      📌 Setup phase

      duration:

      0.00022405432537198067
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001450730487704277
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 39
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 39
        message: NameError
      

      longrepr:

      ip = '129.129.245', expected_instrument = 'diavolezza'
      
          @pytest.mark.parametrize("ip,expected_instrument", [
              ("129.129.242", "alvra"),
              ("129.129.243", "bernina"),
              ("129.129.244", "cristallina"),
              ("129.129.245", "diavolezza"),
              ("129.129.246", "maloja"),
              ("129.129.247", "furka")
          ])
          def test_infer_beamline_from_ip(ip, expected_instrument):
              """Test that the beamline is correctly inferred based on the IP address."""
              # Mock the socket functions to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value=ip):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:39: NameError
      

      📌 Teardown phase

      duration:

      0.00017444416880607605
      

      outcome:

      passed
      
    • Test 12
      params: ip="129.129.246", expected_instrument="maloja"

      📌 Runtime Parameters

      params:
        ip: 129.129.246
        expected_instrument: maloja
      id: 129.129.246-maloja
      

      📌 Setup phase

      duration:

      0.00022431230172514915
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015002721920609474
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 39
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 39
        message: NameError
      

      longrepr:

      ip = '129.129.246', expected_instrument = 'maloja'
      
          @pytest.mark.parametrize("ip,expected_instrument", [
              ("129.129.242", "alvra"),
              ("129.129.243", "bernina"),
              ("129.129.244", "cristallina"),
              ("129.129.245", "diavolezza"),
              ("129.129.246", "maloja"),
              ("129.129.247", "furka")
          ])
          def test_infer_beamline_from_ip(ip, expected_instrument):
              """Test that the beamline is correctly inferred based on the IP address."""
              # Mock the socket functions to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value=ip):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:39: NameError
      

      📌 Teardown phase

      duration:

      0.00017553521320223808
      

      outcome:

      passed
      
    • Test 13
      params: ip="129.129.247", expected_instrument="furka"

      📌 Runtime Parameters

      params:
        ip: 129.129.247
        expected_instrument: furka
      id: 129.129.247-furka
      

      📌 Setup phase

      duration:

      0.00022372836247086525
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001480639912188053
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 39
      message: NameError: name 'patch' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 39
        message: NameError
      

      longrepr:

      ip = '129.129.247', expected_instrument = 'furka'
      
          @pytest.mark.parametrize("ip,expected_instrument", [
              ("129.129.242", "alvra"),
              ("129.129.243", "bernina"),
              ("129.129.244", "cristallina"),
              ("129.129.245", "diavolezza"),
              ("129.129.246", "maloja"),
              ("129.129.247", "furka")
          ])
          def test_infer_beamline_from_ip(ip, expected_instrument):
              """Test that the beamline is correctly inferred based on the IP address."""
              # Mock the socket functions to simulate an IP address
      >       with patch("socket.gethostname", return_value="testhost"), patch("socket.gethostbyname", return_value=ip):
      E       NameError: name 'patch' is not defined
      
      tests/test_utils_reprate.py:39: NameError
      

      📌 Teardown phase

      duration:

      0.00017020292580127716
      

      outcome:

      passed
      

    Function: test_get_pvname_reprate_with_instrument_and_beamline

    • Test 14
      params: instrument="alvra", beamline="aramis", pvname="SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"

      📌 Runtime Parameters

      params:
        instrument: alvra
        beamline: aramis
        pvname: SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB
      id: alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB
      

      📌 Setup phase

      duration:

      0.00026961416006088257
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001488872803747654
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 53
      message: NameError: name 'get_pvname_reprate' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 53
        message: NameError
      

      longrepr:

      instrument = 'alvra', beamline = 'aramis'
      pvname = 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB'
      
          @pytest.mark.parametrize("instrument,beamline,pvname", [
              ("alvra", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("bernina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("cristallina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("diavolezza", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("maloja", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("furka", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB")
          ])
          def test_get_pvname_reprate_with_instrument_and_beamline(instrument, beamline, pvname):
              """Test that the PV name is correctly retrieved based on instrument and beamline."""
      >       retrieved_pvname = get_pvname_reprate(instrument, beamline)
      E       NameError: name 'get_pvname_reprate' is not defined
      
      tests/test_utils_reprate.py:53: NameError
      

      📌 Teardown phase

      duration:

      0.00018408428877592087
      

      outcome:

      passed
      
    • Test 15
      params: instrument="bernina", beamline="aramis", pvname="SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"

      📌 Runtime Parameters

      params:
        instrument: bernina
        beamline: aramis
        pvname: SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB
      id: bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB
      

      📌 Setup phase

      duration:

      0.00026374170556664467
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001592552289366722
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 53
      message: NameError: name 'get_pvname_reprate' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 53
        message: NameError
      

      longrepr:

      instrument = 'bernina', beamline = 'aramis'
      pvname = 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB'
      
          @pytest.mark.parametrize("instrument,beamline,pvname", [
              ("alvra", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("bernina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("cristallina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("diavolezza", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("maloja", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("furka", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB")
          ])
          def test_get_pvname_reprate_with_instrument_and_beamline(instrument, beamline, pvname):
              """Test that the PV name is correctly retrieved based on instrument and beamline."""
      >       retrieved_pvname = get_pvname_reprate(instrument, beamline)
      E       NameError: name 'get_pvname_reprate' is not defined
      
      tests/test_utils_reprate.py:53: NameError
      

      📌 Teardown phase

      duration:

      0.00018347380682826042
      

      outcome:

      passed
      
    • Test 16
      params: instrument="cristallina", beamline="aramis", pvname="SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"

      📌 Runtime Parameters

      params:
        instrument: cristallina
        beamline: aramis
        pvname: SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB
      id: cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB
      

      📌 Setup phase

      duration:

      0.00027245376259088516
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001491042785346508
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 53
      message: NameError: name 'get_pvname_reprate' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 53
        message: NameError
      

      longrepr:

      instrument = 'cristallina', beamline = 'aramis'
      pvname = 'SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB'
      
          @pytest.mark.parametrize("instrument,beamline,pvname", [
              ("alvra", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("bernina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("cristallina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("diavolezza", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("maloja", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("furka", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB")
          ])
          def test_get_pvname_reprate_with_instrument_and_beamline(instrument, beamline, pvname):
              """Test that the PV name is correctly retrieved based on instrument and beamline."""
      >       retrieved_pvname = get_pvname_reprate(instrument, beamline)
      E       NameError: name 'get_pvname_reprate' is not defined
      
      tests/test_utils_reprate.py:53: NameError
      

      📌 Teardown phase

      duration:

      0.00018107611685991287
      

      outcome:

      passed
      
    • Test 17
      params: instrument="diavolezza", beamline="athos", pvname="SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"

      📌 Runtime Parameters

      params:
        instrument: diavolezza
        beamline: athos
        pvname: SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB
      id: diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB
      

      📌 Setup phase

      duration:

      0.0002651219256222248
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0001491815783083439
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 53
      message: NameError: name 'get_pvname_reprate' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 53
        message: NameError
      

      longrepr:

      instrument = 'diavolezza', beamline = 'athos'
      pvname = 'SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB'
      
          @pytest.mark.parametrize("instrument,beamline,pvname", [
              ("alvra", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("bernina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("cristallina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("diavolezza", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("maloja", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("furka", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB")
          ])
          def test_get_pvname_reprate_with_instrument_and_beamline(instrument, beamline, pvname):
              """Test that the PV name is correctly retrieved based on instrument and beamline."""
      >       retrieved_pvname = get_pvname_reprate(instrument, beamline)
      E       NameError: name 'get_pvname_reprate' is not defined
      
      tests/test_utils_reprate.py:53: NameError
      

      📌 Teardown phase

      duration:

      0.00019512884318828583
      

      outcome:

      passed
      
    • Test 18
      params: instrument="maloja", beamline="athos", pvname="SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"

      📌 Runtime Parameters

      params:
        instrument: maloja
        beamline: athos
        pvname: SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB
      id: maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB
      

      📌 Setup phase

      duration:

      0.000265300739556551
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00014799833297729492
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 53
      message: NameError: name 'get_pvname_reprate' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 53
        message: NameError
      

      longrepr:

      instrument = 'maloja', beamline = 'athos'
      pvname = 'SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB'
      
          @pytest.mark.parametrize("instrument,beamline,pvname", [
              ("alvra", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("bernina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("cristallina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("diavolezza", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("maloja", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("furka", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB")
          ])
          def test_get_pvname_reprate_with_instrument_and_beamline(instrument, beamline, pvname):
              """Test that the PV name is correctly retrieved based on instrument and beamline."""
      >       retrieved_pvname = get_pvname_reprate(instrument, beamline)
      E       NameError: name 'get_pvname_reprate' is not defined
      
      tests/test_utils_reprate.py:53: NameError
      

      📌 Teardown phase

      duration:

      0.00018071476370096207
      

      outcome:

      passed
      
    • Test 19
      params: instrument="furka", beamline="athos", pvname="SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"

      📌 Runtime Parameters

      params:
        instrument: furka
        beamline: athos
        pvname: SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB
      id: furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB
      

      📌 Setup phase

      duration:

      0.0002671908587217331
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00015861773863434792
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 53
      message: NameError: name 'get_pvname_reprate' is not defined
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 53
        message: NameError
      

      longrepr:

      instrument = 'furka', beamline = 'athos'
      pvname = 'SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB'
      
          @pytest.mark.parametrize("instrument,beamline,pvname", [
              ("alvra", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("bernina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("cristallina", "aramis", "SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB"),
              ("diavolezza", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("maloja", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB"),
              ("furka", "athos", "SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB")
          ])
          def test_get_pvname_reprate_with_instrument_and_beamline(instrument, beamline, pvname):
              """Test that the PV name is correctly retrieved based on instrument and beamline."""
      >       retrieved_pvname = get_pvname_reprate(instrument, beamline)
      E       NameError: name 'get_pvname_reprate' is not defined
      
      tests/test_utils_reprate.py:53: NameError
      

      📌 Teardown phase

      duration:

      0.00021021626889705658
      

      outcome:

      passed
      

    Function: test_invalid_instrument_or_beamline

    • Test 20

      📌 Setup phase

      duration:

      0.00011828402057290077
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0002735080197453499
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/reprate.py
      lineno: 70
      message: AttributeError: 'NoneType' object has no attribute 'capitalize'
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 59
        message: None
      -   path: slic/utils/reprate.py
        lineno: 70
        message: AttributeError
      

      longrepr:

      def test_invalid_instrument_or_beamline():
              """Test that None is returned when an invalid instrument or beamline is provided."""
              # Invalid instrument
      >       monitor = RepRateMonitor(target="invalid_instrument")
      
      tests/test_utils_reprate.py:59: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      self = <[AttributeError("'RepRateMonitor' object has no attribute 'name'") raised in repr()] RepRateMonitor object at 0x7ff7354bb880>
      target = 'invalid_instrument'
      
          def __init__(self, target=None):
              if target is not None:
                  target = target.lower()
      
              instrument = target if target in INSTRUMENTS else None
              beamline   = target if target in BEAMLINES   else None
      
              if beamline is None:
                  beamline = get_beamline(instrument)
      
              pvname = get_pvname_reprate(instrument, beamline)
      
      >       beamline = beamline.capitalize()
      E       AttributeError: 'NoneType' object has no attribute 'capitalize'
      
      slic/utils/reprate.py:70: AttributeError
      

      📌 Teardown phase

      duration:

      0.0001454101875424385
      

      outcome:

      passed
      

    Function: test_monitor_value_update

    • Test 21

      📌 Setup phase

      duration:

      0.00011640787124633789
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.10348570998758
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 71
      message: AssertionError: Expected 20.0, but got None
      assert None == 20.0
       +  where None = Aramis Rep. Rate: None None.value
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 71
        message: AssertionError
      

      longrepr:

      def test_monitor_value_update():
              #Test that the RepRateMonitor correctly updates its value and units
              monitor = RepRateMonitor("alvra")  # Example instrument
      
              # Check that the initial value is 20.0 and the units are correct
      >       assert monitor.value == 20.0, f"Expected 20.0, but got {monitor.value}"
      E       AssertionError: Expected 20.0, but got None
      E       assert None == 20.0
      E        +  where None = Aramis Rep. Rate: None None.value
      
      tests/test_utils_reprate.py:71: AssertionError
      

      📌 Teardown phase

      duration:

      0.00041046785190701485
      

      outcome:

      passed
      

    Function: test_repr_method_with_initial_values

    • Test 22

      📌 Setup phase

      duration:

      0.0002155364491045475
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      20.00168715696782
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_reprate.py
      lineno: 98
      message: AssertionError: Expected 'Aramis Rep. Rate: 20.0 Hz', but got 'Aramis Rep. Rate: None None'
      assert 'Aramis Rep. Rate: None None' == 'Aramis Rep. Rate: 20.0 Hz'
      
        - Aramis Rep. Rate: 20.0 Hz
        + Aramis Rep. Rate: None None
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 98
        message: AssertionError
      

      longrepr:

      def test_repr_method_with_initial_values():
              # Test __repr__
              monitor = RepRateMonitor("alvra")
      
              # Expected initial values
              expected_name = "Aramis Rep. Rate"
              expected_value = 20.0
              expected_units = "Hz"
      
              # Expected representation
              expected_repr = f"{expected_name}: {expected_value} {expected_units}"
      
              # Check that the __repr__ method returns the expected string
      >       assert repr(monitor) == expected_repr, f"Expected '{expected_repr}', but got '{repr(monitor)}'"
      E       AssertionError: Expected 'Aramis Rep. Rate: 20.0 Hz', but got 'Aramis Rep. Rate: None None'
      E       assert 'Aramis Rep. Rate: None None' == 'Aramis Rep. Rate: 20.0 Hz'
      E         
      E         - Aramis Rep. Rate: 20.0 Hz
      E         + Aramis Rep. Rate: None None
      
      tests/test_utils_reprate.py:98: AssertionError
      

      📌 Teardown phase

      duration:

      0.0002026609145104885
      

      outcome:

      passed
      

    Function: test_invalid_target_handling

    • Test 23
      params: invalid_target="invalid_instrument"

      📌 Runtime Parameters

      params:
        invalid_target: invalid_instrument
      id: invalid_instrument
      

      📌 Setup phase

      duration:

      0.0003997604362666607
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0004198583774268627
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/reprate.py
      lineno: 70
      message: AttributeError: 'NoneType' object has no attribute 'capitalize'
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 107
        message: None
      -   path: slic/utils/reprate.py
        lineno: 70
        message: AttributeError
      

      longrepr:

      invalid_target = 'invalid_instrument'
      
          @pytest.mark.parametrize("invalid_target", [
              "invalid_instrument",  # Non-existent instrument
              "non_existing_beamline"  # Non-existent beamline
          ])
          def test_invalid_target_handling(invalid_target):
              # Test that an invalid target correctly results in None for PV name."""
      >       monitor = RepRateMonitor(invalid_target)
      
      tests/test_utils_reprate.py:107: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      self = <[AttributeError("'RepRateMonitor' object has no attribute 'name'") raised in repr()] RepRateMonitor object at 0x7ff72fa66520>
      target = 'invalid_instrument'
      
          def __init__(self, target=None):
              if target is not None:
                  target = target.lower()
      
              instrument = target if target in INSTRUMENTS else None
              beamline   = target if target in BEAMLINES   else None
      
              if beamline is None:
                  beamline = get_beamline(instrument)
      
              pvname = get_pvname_reprate(instrument, beamline)
      
      >       beamline = beamline.capitalize()
      E       AttributeError: 'NoneType' object has no attribute 'capitalize'
      
      slic/utils/reprate.py:70: AttributeError
      

      📌 Teardown phase

      duration:

      0.00019546505063772202
      

      outcome:

      passed
      
    • Test 24
      params: invalid_target="non_existing_beamline"

      📌 Runtime Parameters

      params:
        invalid_target: non_existing_beamline
      id: non_existing_beamline
      

      📌 Setup phase

      duration:

      0.00022458191961050034
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00023952079936861992
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/reprate.py
      lineno: 70
      message: AttributeError: 'NoneType' object has no attribute 'capitalize'
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 107
        message: None
      -   path: slic/utils/reprate.py
        lineno: 70
        message: AttributeError
      

      longrepr:

      invalid_target = 'non_existing_beamline'
      
          @pytest.mark.parametrize("invalid_target", [
              "invalid_instrument",  # Non-existent instrument
              "non_existing_beamline"  # Non-existent beamline
          ])
          def test_invalid_target_handling(invalid_target):
              # Test that an invalid target correctly results in None for PV name."""
      >       monitor = RepRateMonitor(invalid_target)
      
      tests/test_utils_reprate.py:107: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      self = <[AttributeError("'RepRateMonitor' object has no attribute 'name'") raised in repr()] RepRateMonitor object at 0x7ff72fa6ecd0>
      target = 'non_existing_beamline'
      
          def __init__(self, target=None):
              if target is not None:
                  target = target.lower()
      
              instrument = target if target in INSTRUMENTS else None
              beamline   = target if target in BEAMLINES   else None
      
              if beamline is None:
                  beamline = get_beamline(instrument)
      
              pvname = get_pvname_reprate(instrument, beamline)
      
      >       beamline = beamline.capitalize()
      E       AttributeError: 'NoneType' object has no attribute 'capitalize'
      
      slic/utils/reprate.py:70: AttributeError
      

      📌 Teardown phase

      duration:

      0.00016262615099549294
      

      outcome:

      passed
      

    Function: test_retrieve_pvname_for_none_instrument_and_beamline

    • Test 25

      📌 Setup phase

      duration:

      0.00011584162712097168
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00021672388538718224
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/reprate.py
      lineno: 70
      message: AttributeError: 'NoneType' object has no attribute 'capitalize'
      

      traceback:

      -   path: tests/test_utils_reprate.py
        lineno: 114
        message: None
      -   path: slic/utils/reprate.py
        lineno: 70
        message: AttributeError
      

      longrepr:

      def test_retrieve_pvname_for_none_instrument_and_beamline():
              # Test that if both instrument and beamline are None, the method works correctly."""
      >       monitor = RepRateMonitor(target=None)
      
      tests/test_utils_reprate.py:114: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      self = <[AttributeError("'RepRateMonitor' object has no attribute 'name'") raised in repr()] RepRateMonitor object at 0x7ff7354be520>
      target = None
      
          def __init__(self, target=None):
              if target is not None:
                  target = target.lower()
      
              instrument = target if target in INSTRUMENTS else None
              beamline   = target if target in BEAMLINES   else None
      
              if beamline is None:
                  beamline = get_beamline(instrument)
      
              pvname = get_pvname_reprate(instrument, beamline)
      
      >       beamline = beamline.capitalize()
      E       AttributeError: 'NoneType' object has no attribute 'capitalize'
      
      slic/utils/reprate.py:70: AttributeError
      

      📌 Teardown phase

      duration:

      0.00016421126201748848
      

      outcome:

      passed
      

📚 Collected files

(1 tests)
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_reprate.py
      type: Module
    
tests (1 tests)
  • tests/test_utils_reprate.py
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_reprate.py::test_get_beamline[alvra-aramis]
      type: Function
      lineno: 6
    -   nodeid: tests/test_utils_reprate.py::test_get_beamline[bernina-aramis]
      type: Function
      lineno: 6
    -   nodeid: tests/test_utils_reprate.py::test_get_beamline[cristallina-aramis]
      type: Function
      lineno: 6
    -   nodeid: tests/test_utils_reprate.py::test_get_beamline[diavolezza-athos]
      type: Function
      lineno: 6
    -   nodeid: tests/test_utils_reprate.py::test_get_beamline[maloja-athos]
      type: Function
      lineno: 6
    -   nodeid: tests/test_utils_reprate.py::test_get_beamline[furka-athos]
      type: Function
      lineno: 6
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_for_inferred_beamline
      type: Function
      lineno: 19
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.242-alvra]
      type: Function
      lineno: 27
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.243-bernina]
      type: Function
      lineno: 27
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.244-cristallina]
      type: Function
      lineno: 27
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.245-diavolezza]
      type: Function
      lineno: 27
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.246-maloja]
      type: Function
      lineno: 27
    -   nodeid: tests/test_utils_reprate.py::test_infer_beamline_from_ip[129.129.247-furka]
      type: Function
      lineno: 27
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[alvra-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]
      type: Function
      lineno: 42
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[bernina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]
      type: Function
      lineno: 42
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[cristallina-aramis-SIN-TIMAST-TMA:Bunch-1-Exp-Freq-RB]
      type: Function
      lineno: 42
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[diavolezza-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]
      type: Function
      lineno: 42
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[maloja-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]
      type: Function
      lineno: 42
    -   nodeid: tests/test_utils_reprate.py::test_get_pvname_reprate_with_instrument_and_beamline[furka-athos-SIN-TIMAST-TMA:Bunch-2-Exp-Freq-RB]
      type: Function
      lineno: 42
    -   nodeid: tests/test_utils_reprate.py::test_invalid_instrument_or_beamline
      type: Function
      lineno: 55
    -   nodeid: tests/test_utils_reprate.py::test_monitor_value_update
      type: Function
      lineno: 65
    -   nodeid: tests/test_utils_reprate.py::test_repr_method_with_initial_values
      type: Function
      lineno: 84
    -   nodeid: tests/test_utils_reprate.py::test_invalid_target_handling[invalid_instrument]
      type: Function
      lineno: 100
    -   nodeid: tests/test_utils_reprate.py::test_invalid_target_handling[non_existing_beamline]
      type: Function
      lineno: 100
    -   nodeid: tests/test_utils_reprate.py::test_retrieve_pvname_for_none_instrument_and_beamline
      type: Function
      lineno: 111
    

⚠️ Warnings

Warnings nº1
message: invalid escape sequence \-
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/bsread/h5.py
lineno: 207
Warnings nº2
message: The module numpy.dual is deprecated.  Instead of using dual, use the functions directly from numpy or scipy.
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/scipy/fft/__init__.py
lineno: 97