Add basic memory challenge (#57)

This commit is contained in:
merwanehamadi
2023-07-05 20:32:28 -07:00
committed by GitHub
parent bfc7dfdb29
commit 74fc969dd6
24 changed files with 121 additions and 38 deletions

View File

@@ -1,5 +1,4 @@
import os
from pathlib import Path
from typing import Any, Dict
import pytest
@@ -17,8 +16,7 @@ class TestWriteFile(BasicChallenge):
def test_method(self, config: Dict[str, Any]) -> None:
self.setup_challenge(config)
workspace = Path(os.getcwd()) / config["workspace"]
files_contents = self.open_files(workspace, self.data.ground.files)
files_contents = self.open_files(config["workspace"], self.data.ground.files)
scores = []
for file_content in files_contents: