-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1089 from skalenetwork/fix-statsd
Replace hyphen with underscore in metric name
- Loading branch information
Showing
8 changed files
with
145 additions
and
161 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
peewee==3.9.5 | ||
Flask==2.3.3 | ||
Werkzeug==2.3.7 | ||
gunicorn==20.1.0 | ||
Werkzeug==3.0.3 | ||
gunicorn==22.0.0 | ||
|
||
Jinja2==3.1.2 | ||
|
||
|
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,8 +1,15 @@ | ||
from tools.helper import is_address_contract | ||
from tools.helper import is_address_contract, no_hyphens | ||
from tools.configs.web3 import ZERO_ADDRESS | ||
|
||
|
||
def test_is_address_contract(skale): | ||
assert not is_address_contract(skale.web3, ZERO_ADDRESS) | ||
assert is_address_contract(skale.web3, skale.manager.address) | ||
assert is_address_contract(skale.web3, skale.nodes.address) | ||
|
||
|
||
def test_no_hyphen(): | ||
assert no_hyphens('too') == 'too' | ||
assert no_hyphens('too-boo') == 'too_boo' | ||
assert no_hyphens('too-boo_goo') == 'too_boo_goo' | ||
assert no_hyphens('too_goo') == 'too_goo' |
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