(self)
| 712 | class ConfigServiceLoadCodeTest(unittest.TestCase): |
| 713 | |
| 714 | def setUp(self) -> None: |
| 715 | super().setUp() |
| 716 | test_utils.setup() |
| 717 | |
| 718 | authorizer = Authorizer([], ['admin_user', 'admin_non_editor'], [], ['admin_user'], EmptyGroupProvider()) |
| 719 | self.admin_user = User('admin_user', {}) |
| 720 | self.config_service = ConfigService(authorizer, test_utils.temp_folder, test_utils.process_invoker) |
| 721 | |
| 722 | for pair in [('script.py', b'123'), |
| 723 | ('another.py', b'xyz'), |
| 724 | ('binary 1.bin', bytes.fromhex('300000004000000a')), |
| 725 | ('my_python', bytes.fromhex('7F454C46'))]: |
| 726 | path = os.path.join(test_utils.temp_folder, pair[0]) |
| 727 | file_utils.write_file(path, pair[1], byte_content=True) |
| 728 | |
| 729 | @parameterized.expand([ |
| 730 | ('tests_temp/script.py',), |
nothing calls this directly
no test coverage detected