-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework - Move conftest const in their file and adapt import in test f…
…iles (#197) * rework: move conftest const in their file amd adapt import in test files - Moving constants inside their proper file under tests folder -> avoid import `tests.conftest` and keep it as fixture file - Adapt import from `tests.conftest` to `tests.constants` with constant uppercase naming -> adapted - Fix `moccasin.toml` explorer_uri for live testing * feat: update lock file --------- Co-authored-by: Patrick Collins <[email protected]>
- Loading branch information
1 parent
f8990bd
commit 302407d
Showing
16 changed files
with
747 additions
and
675 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
from pathlib import Path | ||
|
||
# ------------------------------------------------------------------ | ||
# TEST PROJECT PATH | ||
# ------------------------------------------------------------------ | ||
COMPLEX_PROJECT_PATH = Path(__file__).parent.joinpath("data/complex_project/") | ||
DEPLOYMENTS_PROJECT_PATH = Path(__file__).parent.joinpath("data/deployments_project/") | ||
INSTALL_PROJECT_PATH = Path(__file__).parent.joinpath("data/installation_project/") | ||
NO_CONFIG_PROJECT_PATH = Path(__file__).parent.joinpath("data/no_config_project/") | ||
PURGE_PROJECT_PATH = Path(__file__).parent.joinpath("data/purge_project/") | ||
TESTS_CONFIG_PROJECT_PATH = Path(__file__).parent.joinpath("data/tests_project/") | ||
ZKSYNC_PROJECT_PATH = Path(__file__).parent.joinpath("data/zksync_project/") | ||
|
||
# ------------------------------------------------------------------ | ||
# TEST ANVIL | ||
# ------------------------------------------------------------------ | ||
ANVIL1_PRIVATE_KEY = ( | ||
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" | ||
) | ||
ANVIL1_KEYSTORE_NAME = "anvil1" | ||
ANVIL1_KEYSTORE_PASSWORD = "password" | ||
ANVIL_STORED_STATE_PATH = Path(__file__).parent.joinpath("data/anvil_data/state.json") | ||
ANVIL_STORED_KEYSTORE_PATH = Path(__file__).parent.joinpath( | ||
"data/anvil_data/anvil1.json" | ||
) | ||
|
||
|
||
# ------------------------------------------------------------------ | ||
# TEST TOML | ||
# ------------------------------------------------------------------ | ||
INSTALLATION_STARTING_TOML = """[project] | ||
dependencies = ["snekmate", "moccasin"] | ||
# PRESERVE COMMENTS | ||
[networks.sepolia] | ||
url = "https://ethereum-sepolia-rpc.publicnode.com" | ||
chain_id = 11155111 | ||
save_to_db = false | ||
""" | ||
|
||
PURGE_STARTING_TOML = """[project] | ||
dependencies = ["snekmate", "patrickalphac/test_repo"] | ||
# PRESERVE COMMENTS | ||
[networks.sepolia] | ||
url = "https://ethereum-sepolia-rpc.publicnode.com" | ||
chain_id = 11155111 | ||
""" | ||
|
||
|
||
# ------------------------------------------------------------------ | ||
# TEST GITHUB | ||
# ------------------------------------------------------------------ | ||
PIP_PACKAGE_NAME = "snekmate" | ||
ORG_NAME = "pcaversaccio" | ||
GITHUB_PACKAGE_NAME = f"{ORG_NAME}/{PIP_PACKAGE_NAME}" | ||
VERSION = "0.1.0" | ||
NEW_VERSION = "0.0.5" | ||
COMMENT_CONTENT = "PRESERVE COMMENTS" | ||
PATRICK_ORG_NAME = "patrickalphac" | ||
PATRICK_REPO_NAME = "test_repo" | ||
PATRICK_PACKAGE_NAME = f"{PATRICK_ORG_NAME}/{PATRICK_REPO_NAME}" |
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
Oops, something went wrong.