Skip to content

Commit

Permalink
Test a function that apparently does nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jun 16, 2023
1 parent c79d121 commit e0f997c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/I24/serial/fixed-target/test_chip_startup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import mock_open, patch

from mx_bluesky.I24.serial.fixed_target.i24ssx_Chip_StartUp_py3v1 import (
check_files,
fiducials,
get_format,
scrape_parameter_file,
Expand Down Expand Up @@ -42,3 +43,12 @@ def test_get_format():
# oxford chip
fmt = get_format("1")
assert fmt == [8, 8, 20, 20, 0.125, 0.800, 0.800]


@patch("mx_bluesky.I24.serial.fixed_target.i24ssx_Chip_StartUp_py3v1.os")
@patch(
"mx_bluesky.I24.serial.fixed_target.i24ssx_Chip_StartUp_py3v1.open",
mock_open(read_data=params_file_str),
)
def test_check_files(mock_os):
check_files("i24", [".a", ".b"])

0 comments on commit e0f997c

Please sign in to comment.