"""Unit tests for photo capture node (Issue #456)."""

import unittest


class TestPhotoCaptureNode(unittest.TestCase):
    """Test photo capture module structure."""

    def test_module_imports(self):
        """Verify module can be imported."""
        try:
            import saltybot_photo_capture
            self.assertIsNotNone(saltybot_photo_capture)
        except ImportError as e:
            self.fail(f"Failed to import: {e}")

    def test_node_class_exists(self):
        """Verify PhotoCaptureNode class exists."""
        try:
            from saltybot_photo_capture.photo_capture_node import PhotoCaptureNode
            self.assertIsNotNone(PhotoCaptureNode)
        except ImportError as e:
            self.fail(f"Failed to import PhotoCaptureNode: {e}")

    def test_main_function_exists(self):
        """Verify main function exists."""
        try:
            from saltybot_photo_capture.photo_capture_node import main
            self.assertTrue(callable(main))
        except ImportError as e:
            self.fail(f"Failed to import main: {e}")


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