Skip to content

Commit 35de13e

Browse files
taimoorzaeemsteve-chavez
authored andcommitted
test(io): move fixtures to fixtures/ directory
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
1 parent 3baa6b0 commit 35de13e

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

nix/tools/tests.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ let
8383
}
8484
''
8585
${cabal-install}/bin/cabal v2-build ${devCabalOptions} exe:postgrest
86-
${cabal-install}/bin/cabal v2-exec -- ${withTools.withPg} -f test/io/load.sql \
86+
${cabal-install}/bin/cabal v2-exec -- ${withTools.withPg} -f test/io/fixtures/load.sql \
8787
${ioTestPython}/bin/pytest --ignore=test/io/test_big_schema.py --ignore=test/io/test_replica.py -v test/io "''${_arg_leftovers[@]}"
8888
'';
8989

@@ -98,7 +98,7 @@ let
9898
}
9999
''
100100
${cabal-install}/bin/cabal v2-build ${devCabalOptions} exe:postgrest
101-
${cabal-install}/bin/cabal v2-exec -- ${withTools.withPg} -f test/io/big_schema.sql \
101+
${cabal-install}/bin/cabal v2-exec -- ${withTools.withPg} -f test/io/fixtures/big_schema.sql \
102102
${ioTestPython}/bin/pytest -v test/io/test_big_schema.py "''${_arg_leftovers[@]}"
103103
'';
104104

@@ -113,7 +113,7 @@ let
113113
}
114114
''
115115
${cabal-install}/bin/cabal v2-build ${devCabalOptions} exe:postgrest
116-
${cabal-install}/bin/cabal v2-exec -- ${withTools.withPg} --replica -f test/io/replica.sql \
116+
${cabal-install}/bin/cabal v2-exec -- ${withTools.withPg} --replica -f test/io/fixtures/replica.sql \
117117
${ioTestPython}/bin/pytest -v test/io/test_replica.py "''${_arg_leftovers[@]}"
118118
'';
119119

@@ -164,15 +164,15 @@ let
164164
165165
# collect all tests
166166
HPCTIXFILE="$tmpdir"/io.tix \
167-
${withTools.withPg} -f test/io/load.sql \
167+
${withTools.withPg} -f test/io/fixtures/load.sql \
168168
${cabal-install}/bin/cabal v2-exec ${devCabalOptions} -- ${ioTestPython}/bin/pytest --ignore=test/io/test_big_schema.py --ignore=test/io/test_replica.py -v test/io
169169
170170
HPCTIXFILE="$tmpdir"/big_schema.tix \
171-
${withTools.withPg} -f test/io/big_schema.sql \
171+
${withTools.withPg} -f test/io/fixtures/big_schema.sql \
172172
${cabal-install}/bin/cabal v2-exec ${devCabalOptions} -- ${ioTestPython}/bin/pytest -v test/io/test_big_schema.py
173173
174174
HPCTIXFILE="$tmpdir"/replica.tix \
175-
${withTools.withPg} --replica -f test/io/replica.sql \
175+
${withTools.withPg} --replica -f test/io/fixtures/replica.sql \
176176
${cabal-install}/bin/cabal v2-exec ${devCabalOptions} -- ${ioTestPython}/bin/pytest -v test/io/test_replica.py
177177
178178
HPCTIXFILE="$tmpdir"/spec.tix \

test/io/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
BASEDIR = pathlib.Path(os.path.realpath(__file__)).parent
99
CONFIGSDIR = BASEDIR / "configs"
10-
FIXTURES = yaml.load((BASEDIR / "fixtures.yaml").read_text(), Loader=yaml.Loader)
10+
FIXTURES = yaml.load(
11+
(BASEDIR / "fixtures/fixtures.yaml").read_text(), Loader=yaml.Loader
12+
)
1113
POSTGREST_BIN = shutil.which("postgrest")
1214
SECRET = "reallyreallyreallyreallyverysafe"
1315

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)