Skip to content

Commit

Permalink
WIP tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 22, 2023
1 parent afdf5c7 commit 0db0979
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mod prisma_17103 {
schema.to_owned()
}

#[connector_test]
#[connector_test(exclude(Vitess("planetscale.js")))]
async fn regression(runner: Runner) -> TestResult<()> {
run_query!(
&runner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod nested_create_many {

// "Nested createMany" should "error on duplicates by default"
// TODO(dom): Not working for mongo
#[connector_test(exclude(Sqlite, MongoDb))]
#[connector_test(exclude(Sqlite, MongoDb, Vitess("planetscale.js")))]
async fn nested_createmany_fail_dups(runner: Runner) -> TestResult<()> {
assert_error!(
&runner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mod compound_fks {
}

// "A One to Many relation with mixed requiredness" should "be writable and readable"
#[connector_test(exclude(MySql(5.6), MongoDb))]
#[connector_test(exclude(MySql(5.6), MongoDb, Vitess("planetscale.js")))]
async fn one2m_mix_required_writable_readable(runner: Runner) -> TestResult<()> {
// Setup user
insta::assert_snapshot!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ mod create {
// TODO(dom): Not working on mongo
// TODO(dom): 'Expected result to return an error, but found success: {"data":{"createOneScalarModel":{"optUnique":"test"}}}'
// Comment(dom): Expected, we're not enforcing uniqueness for the test setup yet.
#[connector_test(exclude(MongoDb))]
#[connector_test(exclude(MongoDb, Vitess("planetscale.js")))]
async fn gracefully_fails_when_uniq_violation(runner: Runner) -> TestResult<()> {
run_query!(
&runner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mod create_many {
}

// "createMany" should "error on duplicates by default"
#[connector_test(schema(schema_4))]
#[connector_test(schema(schema_4), exclude(Vitess("planetscale.js")))]
async fn create_many_error_dups(runner: Runner) -> TestResult<()> {
assert_error!(
&runner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ mod update_many {
}

// "An updateMany mutation" should "correctly apply all number operations for Int"
#[connector_test(exclude(CockroachDb))]
#[connector_test(exclude(Vitess("planetscale.js"), CockroachDb))]
async fn apply_number_ops_for_int(runner: Runner) -> TestResult<()> {
create_row(&runner, r#"{ id: 1, optStr: "str1" }"#).await?;
create_row(&runner, r#"{ id: 2, optStr: "str2", optInt: 2 }"#).await?;
Expand Down Expand Up @@ -240,7 +240,7 @@ mod update_many {
}

// "An updateMany mutation" should "correctly apply all number operations for Float"
#[connector_test]
#[connector_test(exclude(Vitess("planetscale.js")))]
async fn apply_number_ops_for_float(runner: Runner) -> TestResult<()> {
create_row(&runner, r#"{ id: 1, optStr: "str1" }"#).await?;
create_row(&runner, r#"{ id: 2, optStr: "str2", optFloat: 2 }"#).await?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ mod upsert {
Ok(())
}

#[connector_test(schema(generic))]
#[connector_test(schema(generic), exclude(Vitess("planetscale.js")))]
async fn upsert_fails_if_filter_dont_match(runner: Runner) -> TestResult<()> {
run_query!(
&runner,
Expand Down

0 comments on commit 0db0979

Please sign in to comment.