Skip to content

Commit

Permalink
fix: make mnemonics stop showing in root warnings on 'key add' (#95)
Browse files Browse the repository at this point in the history
* Rename and organize query clients

* README linting

* Organize tx clients

* refactor: fix pytest.approx import

* refactor: move to absolute imports

* chore(shutup): silence warnings that print menomonics on successful key add

Co-authored-by: NibiruHeisenberg <[email protected]>
  • Loading branch information
Unique-Divine and NibiruHeisenberg authored Aug 19, 2022
1 parent 51931d9 commit 1447c37
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
14 changes: 13 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ aiocron = "^1.8"
pytest = "^7.1.2"
pre-commit = "^2.20.0"
nibiru-proto = "^0.13.2"
shutup = "^0.2.0"

[tool.poetry.dev-dependencies]
black = "^22.6.0"
Expand Down
8 changes: 4 additions & 4 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import logging
import sys

logging.basicConfig()
import shutup

shutup.please()


def init_test_logger() -> logging.Logger:
Expand All @@ -13,9 +15,7 @@ def init_test_logger() -> logging.Logger:
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.DEBUG)

formatter = logging.Formatter(
'%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
formatter = logging.Formatter('%(asctime)s|%(levelname)s| %(message)s')
handler.setFormatter(formatter)
test_logger.addHandler(handler)
return test_logger
Expand Down

0 comments on commit 1447c37

Please sign in to comment.