generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
category: bugSomething isn't workingSomething isn't working
Description
Have you ensured that all of these are up to date?
- Ape
- Ape plugins
What version of Ape are you on?
0.8.31
What command(s) is the bug in?
ape test
Operating System
macOS (Intel)
Ape Configuration
No response
Description
Running test throws AssertionError inconsistently.
If I keep __init__(): in contract I get:
> FAILED tests/test_testy.py::testy_test - AssertionError: Could not find the source of the revert.
If I remove it, test passes as it should.
Reproduction code
testy.vy:
# pragma version 0.4.1
@deploy
def __init__():
pass
@external
def lfg(t: bool):
assert True == t # dev: this is a dev message
conftest.py
import pytest
@pytest.fixture(scope="session")
def user(accounts):
yield accounts[0]
test_testy.py
import ape
def testy_test(testy, user):
with ape.reverts(dev_message="dev: this is a dev message"):
testy.lfg(False, sender=user)
Metadata
Metadata
Assignees
Labels
category: bugSomething isn't workingSomething isn't working