Skip to content

Commit

Permalink
add comments to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbubbles committed Dec 30, 2024
1 parent b67ab3f commit ef0c49d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional/syntax/modules/test_initializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,7 @@ def foo():

@pytest.mark.parametrize("module", initializable_modules)
def test_initializes_on_modules_with_state_related_vars(module, make_input_bundle):
# test modules that use storage can be initialized
main = """
import lib
initializes: lib
Expand All @@ -1453,6 +1454,7 @@ def test_initializes_on_modules_with_state_related_vars(module, make_input_bundl


def test_initializes_on_modules_with_immutables(make_input_bundle):
# test modules with immutables can be initialized
lib = """
foo: immutable(int128)
Expand Down Expand Up @@ -1490,6 +1492,7 @@ def foo(x: uint256, y: uint256) -> uint256:

@pytest.mark.parametrize("module", stateless_modules)
def test_forbids_initializes_on_stateless_modules(module, make_input_bundle):
# test we cannot initialize modules that don't use state
main = """
import lib
initializes: lib
Expand Down

0 comments on commit ef0c49d

Please sign in to comment.