Skip to content

Commit

Permalink
Create isru_module_tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Oct 18, 2024
1 parent 806b9ce commit b734ec0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/isru_module_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import unittest
from isru_module import ISRUProcessor # Assuming an ISRUProcessor class exists

class TestISRUProcessor(unittest.TestCase):
def setUp(self):
self.processor = ISRUProcessor()

def test_process_resource(self):
result = self.processor.process("regolith")
self.assertTrue(result)

def test_process_invalid(self):
result = self.processor.process("unknown")
self.assertFalse(result)

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

0 comments on commit b734ec0

Please sign in to comment.