Skip to content

Commit

Permalink
Testing how often it is called in testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Feb 1, 2024
1 parent 8754870 commit f8856b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_mount.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from contextlib import suppress

import pytest
from astropy.utils.data import conf
from panoptes.pocs import hardware
from panoptes.pocs.mount import AbstractMount
from panoptes.pocs.mount import create_mount_from_config
Expand All @@ -24,8 +25,9 @@ def reset_conf(config_host, config_port):

def test_create_mount_simulator(config_host, config_port):
# Use the simulator create function directly.
mount = create_mount_simulator()
assert isinstance(mount, AbstractMount) is True
with conf.set_temp('astropy.utils.iers.conf.iers_degraded_accuracy', 'warn'):
mount = create_mount_simulator()
assert isinstance(mount, AbstractMount) is True


def test_create_mount_simulator_with_config(config_host, config_port):
Expand Down

0 comments on commit f8856b9

Please sign in to comment.