Move tournament files to a new repository and update tests

This commit is contained in:
Quentin Rendu
2023-09-28 17:20:15 +02:00
parent 4dba0b372f
commit 519811e884
6 changed files with 2 additions and 2 deletions

View File

@@ -210,7 +210,7 @@ class BasicTests: TestBase() {
fun `008 simple swiss tournament`() { fun `008 simple swiss tournament`() {
// read tournament without pairings // read tournament without pairings
var file_np = getTestFile("opengotha/simpleswiss_nopairings.xml") var file_np = getTestFile("opengotha/tournamentfiles/simpleswiss_nopairings.xml")
logger.info("read from file $file_np") logger.info("read from file $file_np")
val resource_np = file_np.readText(StandardCharsets.UTF_8) val resource_np = file_np.readText(StandardCharsets.UTF_8)
val resp_np = TestAPI.post("/api/tour", resource_np) val resp_np = TestAPI.post("/api/tour", resource_np)

View File

@@ -7,7 +7,7 @@ class ImportExportTests: TestBase() {
@Test @Test
fun `001 test imports`() { fun `001 test imports`() {
getTestResources("opengotha").forEach { file -> getTestResources("opengotha/tournamentfiles/").forEach { file ->
logger.info("reading resource ${file.canonicalPath}") logger.info("reading resource ${file.canonicalPath}")
val resource = file.readText(StandardCharsets.UTF_8) val resource = file.readText(StandardCharsets.UTF_8)
val resp = TestAPI.post("/api/tour", resource) val resp = TestAPI.post("/api/tour", resource)