File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,18 @@ Alternatively, if you want to start from scratch:
3232 ` ` ` python
3333 from algopy_testing import algopy_testing_context
3434 from your_contract import YourContract
35-
35+
3636 def test_your_contract ():
37- # Arrange
38- contract = YourContract ()
39- expected_result = ... # Your expected result here
40-
41- # Act
42- result = contract.your_method() # Your test code here
43-
44- # Assert
45- assert result == expected_result
37+ with algopy_testing_context () as context:
38+ # Arrange
39+ contract = YourContract ()
40+ expected_result = ... # Your expected result here
41+
42+ # Act
43+ result = contract.your_method(context.any.uint64()) # Your test code here
44+
45+ # Assert
46+ assert result == expected_result
4647 ` ` `
4748
48495. Run your tests using your preferred Python testing framework (e.g., pytest, unittest)
You can’t perform that action at this time.
0 commit comments