Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
imalsogreg committed Oct 23, 2024
1 parent 4ad7ea4 commit a11d96e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integ-tests/python/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ async def test_constraint_union_variant_checking(self):

@pytest.mark.asyncio
async def test_return_malformed_constraint(self):
with pytest.raises(Exception) as e:
res = await b.ReturnMalformedConstraints(1)
assert res.foo.value == 2
assert res.foo.checks["foo_check"].status == "failed"
assert "Failed to coerce value" in str(e)

@pytest.mark.asyncio
async def test_use_malformed_constraint(self):
Expand Down
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ in pkgs.mkShell {
ruby
nixfmt-classic
swc
lld_18
] ++ (if pkgs.stdenv.isDarwin then appleDeps else [ ]);

LIBCLANG_PATH = pkgs.libclang.lib + "/lib/";
Expand Down

0 comments on commit a11d96e

Please sign in to comment.