| 1 |
from DisplayCAL.dev.mocks import check_call, check_call_str |
| 2 |
from tests.data.display_data import DisplayData |
| 3 |
|
| 4 |
|
| 5 |
def test_update_estimated_measurement_time_1(setup_argyll): |
| 6 |
"""Testing for issue #37. |
| 7 |
|
| 8 |
ReportFrame.update_estimated_measurement_time() method raising |
| 9 |
TypeError. |
| 10 |
""" |
| 11 |
from DisplayCAL.config import initcfg |
| 12 |
from DisplayCAL.wx_report_frame import ReportFrame |
| 13 |
import wx |
| 14 |
|
| 15 |
initcfg() |
| 16 |
app = wx.GetApp() or wx.App() |
| 17 |
|
| 18 |
with check_call_str( |
| 19 |
"DisplayCAL.worker.Worker.get_instrument_name", |
| 20 |
"i1 DisplayPro, ColorMunki Display", |
| 21 |
call_count=2, |
| 22 |
): |
| 23 |
report_frame = ReportFrame() |
| 24 |
# this shouldn't raise any TypeErrors as reported in #37 |
| 25 |
report_frame.update_estimated_measurement_time("chart") |