Complete Lab 5 grade 4 async attachment pipeline
This commit is contained in:
@@ -40,8 +40,13 @@ def main():
|
||||
assert 'X-Instance-Id' in response['headers']
|
||||
assert ('/api/v1/auth/sessions' in spec['paths']) == (lab>=2)
|
||||
assert ('/api/v1/attachments/{attachment_id}' in spec['paths']) == (lab>=4)
|
||||
for file in list((ROOT/'tests').glob('*.py'))+list((ROOT/'scripts').glob('*.py')):
|
||||
ast.parse(file.read_text(),filename=str(file))
|
||||
python_files = []
|
||||
for directory in ('src', 'tests', 'scripts', 'student-tests'):
|
||||
folder = ROOT / directory
|
||||
if folder.exists():
|
||||
python_files.extend(folder.rglob('*.py'))
|
||||
for file in python_files:
|
||||
ast.parse(file.read_text(encoding='utf-8'),filename=str(file))
|
||||
for file in ROOT.rglob('*.json'):
|
||||
if any(part in {'.git','.venv','node_modules','vendor','output'} for part in file.parts):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user