import unittest
from pathlib import Path


class TestRemoteMonitor(unittest.TestCase):
    """Basic tests for remote monitor functionality."""

    def test_imports(self):
        """Test that the module can be imported."""
        from saltybot_remote_monitor import remote_monitor_node
        self.assertIsNotNone(remote_monitor_node)

    def test_config_file_exists(self):
        """Test that config file exists."""
        config_file = Path(__file__).parent.parent / 'config' / 'remote_monitor.yaml'
        self.assertTrue(config_file.exists())

    def test_launch_file_exists(self):
        """Test that launch file exists."""
        launch_file = Path(__file__).parent.parent / 'launch' / 'remote_monitor.launch.py'
        self.assertTrue(launch_file.exists())

    def test_html_ui_exists(self):
        """Test that HTML UI exists."""
        html_file = Path(__file__).parent.parent / 'static' / 'index.html'
        self.assertTrue(html_file.exists())


if __name__ == '__main__':
    unittest.main()
