diff --git a/tests/all_tests.nim b/tests/all_tests.nim index 4a78e88f..bc530de6 100644 --- a/tests/all_tests.nim +++ b/tests/all_tests.nim @@ -1,5 +1,5 @@ import std/[macros, os] -import "."/helpers +import helpers proc genBracket: NimNode = const thisDir = currentSourcePath().parentDir().Path() diff --git a/tests/test_binary.nim b/tests/test_binary.nim index 09b28f32..be4f646b 100644 --- a/tests/test_binary.nim +++ b/tests/test_binary.nim @@ -1,5 +1,5 @@ import std/[os, osproc, strformat, strscans, strutils, unittest] -import "."/[exec, helpers, lint/validators, sync/probspecs] +import exec, helpers, lint/validators, sync/probspecs const testsDir = currentSourcePath().parentDir() diff --git a/tests/test_fmt.nim b/tests/test_fmt.nim index 9d1ba25d..1eea84b2 100644 --- a/tests/test_fmt.nim +++ b/tests/test_fmt.nim @@ -1,6 +1,6 @@ import std/[importutils, json, os, options, random, strutils, unittest] import pkg/jsony -import "."/[exec, helpers, sync/sync_common, types_exercise_config] +import exec, helpers, sync/sync_common, types_exercise_config const testsDir = currentSourcePath().parentDir() diff --git a/tests/test_generate.nim b/tests/test_generate.nim index 9b42363a..0e9a6390 100644 --- a/tests/test_generate.nim +++ b/tests/test_generate.nim @@ -1,5 +1,5 @@ import std/[strutils, unittest] -from "."/generate/generate {.all.} import alterHeadings +from generate/generate {.all.} import alterHeadings proc testGenerate = suite "generate": diff --git a/tests/test_lint.nim b/tests/test_lint.nim index 83d42c3f..8f415026 100644 --- a/tests/test_lint.nim +++ b/tests/test_lint.nim @@ -1,6 +1,6 @@ import std/[strutils, unittest] -import "."/lint/validators -import "."/lint/approaches_and_articles {.all.} +import lint/validators +import lint/approaches_and_articles {.all.} proc testIsKebabCase = suite "isKebabCase": diff --git a/tests/test_probspecs.nim b/tests/test_probspecs.nim index a2316216..7457aaf9 100644 --- a/tests/test_probspecs.nim +++ b/tests/test_probspecs.nim @@ -1,6 +1,6 @@ # This module contains tests for `src/probspecs.nim` import std/[json, os, strformat, tables, unittest] -import "."/[cli, exec, sync/probspecs] +import cli, exec, sync/probspecs proc getProbSpecsExercises(probSpecsDir: ProbSpecsDir): Table[string, seq[ProbSpecsTestCase]] = diff --git a/tests/test_sync.nim b/tests/test_sync.nim index 47c787ce..a09f5e6d 100644 --- a/tests/test_sync.nim +++ b/tests/test_sync.nim @@ -1,7 +1,7 @@ import std/[importutils, json, os, options, strutils, unittest] -import "."/[exec, helpers, sync/sync_common, types_exercise_config, types_track_config] -from "."/sync/sync_filepaths {.all.} import update -from "."/sync/sync_metadata {.all.} import UpstreamMetadata, parseMetadataToml, +import exec, helpers, sync/sync_common, types_exercise_config, types_track_config +from sync/sync_filepaths {.all.} import update +from sync/sync_metadata {.all.} import UpstreamMetadata, parseMetadataToml, metadataAreUpToDate, update const diff --git a/tests/test_tracks.nim b/tests/test_tracks.nim index c1095f3f..d3139756 100644 --- a/tests/test_tracks.nim +++ b/tests/test_tracks.nim @@ -1,6 +1,6 @@ # This file implements tests for `src/tracks.nim` import std/[os, sequtils, sets, unittest] -import "."/[cli, exec, sync/tracks] +import cli, exec, sync/tracks const testsDir = currentSourcePath().parentDir() diff --git a/tests/test_uuid.nim b/tests/test_uuid.nim index 4f257b5f..1cbd90fa 100644 --- a/tests/test_uuid.nim +++ b/tests/test_uuid.nim @@ -1,6 +1,6 @@ import std/unittest import pkg/uuids -import "."/lint/validators +import lint/validators proc main = suite "genUUID: returns a string that isUuidV4 says is valid":