import unittest
import os
from gradescope_utils.autograder_utils.decorators import weight
from gradescope_utils.autograder_utils.files import check_submitted_files


class TestFiles(unittest.TestCase):
    @weight(1)
    def test_submitted_files(self):
        """Check submitted files"""
        missing_files = check_submitted_files(['decode', 'decode-ext', 'translations'])
        for path in missing_files:
            print(f"Missing {path}")
        self.assertEqual(len(missing_files), 0, 'Missing some required files!')
        print("All required files submitted!")
