-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a765b40
commit 54e8c7c
Showing
6 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import pytest | ||
from brownie import network, SimpleCollectible, convert | ||
from brownie import network, SimpleCollectible, convert, chain | ||
from scripts.helpful_scripts import get_account | ||
|
||
|
||
def test_can_create_simple_collectible(): | ||
if network.show_active() not in ["development"] or "fork" in network.show_active(): | ||
pytest.skip("Only for local testing") | ||
simple_collectible = SimpleCollectible.deploy({"from": get_account()}) | ||
simple_collectible.createCollectible("None") | ||
simple_collectible = SimpleCollectible.deploy( | ||
{"from": get_account(), "gas_price": chain.base_fee} | ||
) | ||
simple_collectible.createCollectible( | ||
"None", {"from": get_account(), "gas_price": chain.base_fee} | ||
) | ||
assert simple_collectible.ownerOf(0) == get_account() |