-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* black formatter in Github Actions * code formatted --------- Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
aca7150
commit 8799dd1
Showing
9 changed files
with
241 additions
and
140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: run python script | |
|
||
on: | ||
schedule: | ||
- cron: '0 14 * * *' | ||
- cron: '0 8,14 * * *' | ||
|
||
jobs: | ||
build: | ||
|
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,18 +1,19 @@ | ||
import pytest | ||
import sys | ||
import os | ||
import os | ||
|
||
sys.path.append(os.path.dirname(os.path.dirname(__file__)) + "/trending-pools") | ||
|
||
from helpers import parse_token_id | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"id, chain_and_address", | ||
[ | ||
("polygon_pos_0xCrazyShitcoin0", ("polygon_pos", "0xCrazyShitcoin0")), | ||
("eth_0xCrazyShitcoin1", ("eth", "0xCrazyShitcoin1")), | ||
("eth-goerli_0xCrazyShitcoin2", ("eth-goerli", "0xCrazyShitcoin2")), | ||
] | ||
"id, chain_and_address", | ||
[ | ||
("polygon_pos_0xCrazyShitcoin0", ("polygon_pos", "0xCrazyShitcoin0")), | ||
("eth_0xCrazyShitcoin1", ("eth", "0xCrazyShitcoin1")), | ||
("eth-goerli_0xCrazyShitcoin2", ("eth-goerli", "0xCrazyShitcoin2")), | ||
], | ||
) | ||
def test_parse_token_id(id, chain_and_address): | ||
assert parse_token_id(id) == chain_and_address |
Oops, something went wrong.