Skip to content

Commit d488804

Browse files
committed
No need for skip now deselect works properly
1 parent f5d6d5d commit d488804

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

teachprogramming/lib/verify_snippets/conftest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ def compile_test_java(spec: ProjectItemSpec):
119119
def copy_cs_file_to_workdir(filename: str):
120120
shutil.copyfile(get_docker_folder_for_language('cs').joinpath(filename), tempdir.joinpath(filename))
121121
def compile_test_csharp(spec: ProjectItemSpec):
122-
copy_cs_file_to_workdir('main.csproj')
123-
copy_cs_file_to_workdir('packages.log.json')
122+
# TODO: probably need to cleanup the other cs files or this might be contaminated from previous runs
123+
#copy_cs_file_to_workdir('main.csproj')
124+
# TODO: edit `main.csproj` to point to top level cs class
125+
#copy_cs_file_to_workdir('packages.log.json')
124126
path_code_file = tempdir.joinpath(spec.name)
125127
path_code_file.write_text(spec.code)
126-
# TODO: edit `main.csproj` to point to top level cs class
127-
# TODO: probably need to cleanup the other cs files or this might be contaminated from previous runs
128128
spec.exec_language(('dotnet', 'build'))
129129

130130

@@ -211,8 +211,8 @@ def __init__(self, *, spec: ProjectItemSpec, **kwargs):
211211
self.spec = spec
212212

213213
def runtest(self):
214-
if self.spec.language not in LANGUAGES.keys():
215-
raise pytest.skip.Exception(f"Unsupported language {self.spec.language}")
214+
#if self.spec.language not in LANGUAGES.keys():
215+
# raise pytest.skip.Exception(f"Unsupported language {self.spec.language}")
216216

217217
# If we clear the folder, there is some race hazard with mounting this in docker and the folder is not writeable
218218
# A delay of 0.5 seconds solves most of this - but I don't want to slow the tests down

0 commit comments

Comments
 (0)