Skip to content

Commit 47e0f06

Browse files
committed
Make mutation tests repeatable
1 parent ac9efca commit 47e0f06

File tree

4 files changed

+337
-185
lines changed

4 files changed

+337
-185
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ jobs:
202202
- name: Additional Integration tests
203203
working-directory: ./examples/postgres
204204
run: |
205-
cargo test --test pg_query_tests entity_metadata_tests
205+
cargo test --test pg_query_tests
206+
cargo test --test entity_metadata_tests
206207
rm tests/pg_query_tests.rs tests/entity_metadata_tests.rs
207208
- name: Remove generated folder
208209
run: rm -rf ./examples/postgres/src

examples/postgres/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "2.0.0-rc.2"
77
axum = { version = "0.8" }
88
async-graphql-axum = { version = "7.0" }
99
dotenv = "0.15.0"
10-
sea-orm = { version = "~2.0.0-rc", features = ["sqlx-postgres", "runtime-tokio-native-tls", "seaography"] }
10+
sea-orm = { version = "~2.0.0-rc", features = ["sqlx-postgres", "runtime-tokio-native-tls", "seaography", "debug-print"] }
1111
tokio = { version = "1.29.1", features = ["macros", "rt-multi-thread"] }
1212
tracing = { version = "0.1.37" }
1313
tracing-subscriber = { version = "0.3.17" }
@@ -18,6 +18,7 @@ version = "~2.0.0-rc.2" # seaography version
1818
features = ["with-decimal", "with-chrono", "with-json", "with-postgres-array", "schema-meta"]
1919

2020
[dev-dependencies]
21+
serde = { version = "1", features = ["derive"] }
2122
serde_json = { version = "1.0.103" }
2223

2324
[workspace]

examples/postgres/tests/entity_metadata_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ async fn test_entity_metadata() {
215215
"name": "mpaa_rating",
216216
"variants": [
217217
"G",
218-
"NC-17",
219218
"PG",
220219
"PG-13",
221-
"R"
220+
"R",
221+
"NC-17"
222222
]
223223
}
224224
}

0 commit comments

Comments
 (0)