import unittest
from pathlib import Path


class TestBagRecorder(unittest.TestCase):
    """Basic tests for bag recorder functionality."""

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

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

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


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