-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Improve tests #296
Merged
Merged
[FEAT] Improve tests #296
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
01ae44e
test cli arent async tests
dni 30224b0
unused SERVER_ENDPOINT var
dni 5e27438
async test werent marked async
dni ede4b09
make test didnt use correct ports
dni 8a5323b
enable more verbose test logging
dni 2f63644
refactor conftest variable
dni 9ebec89
not needed anymore are set in conftest
dni be25fdc
using test_data now for conftest
dni 3d08d19
formatting
dni f365a20
comment out invalid hex
dni 42801b2
remove test dir before creating it to be sure
dni 4b5b455
keep data from altest testrun and ad test_data to ignore
dni 0a59ac0
ignore error for CI
dni 7ffd883
add duplicate env var
dni f6eda8c
fix confest
dni 6d4320f
Update pyproject.toml
callebtc 8d04740
fix up tests
callebtc d4d148d
short p2pk locktimes for faster tests
callebtc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ TOR=TRUE | |
|
||
# NOSTR | ||
# nostr private key to which to receive tokens to | ||
NOSTR_PRIVATE_KEY=nostr_privatekey_here_hex_or_bech32_nsec | ||
# NOSTR_PRIVATE_KEY=nostr_privatekey_here_hex_or_bech32_nsec | ||
# nostr relays (comma separated list) | ||
NOSTR_RELAYS=["wss://nostr-pub.wellorder.net"] | ||
|
||
|
@@ -38,7 +38,6 @@ MINT_INFO_CONTACT=[["email","[email protected]"], ["twitter","@me"], ["nostr", "np | |
MINT_INFO_MOTD="Message to users" | ||
|
||
MINT_PRIVATE_KEY=supersecretprivatekey | ||
MINT_DATABASE=data/mint | ||
# increment derivation path to rotate to a new keyset | ||
MINT_DERIVATION_PATH="0/0/0/0" | ||
|
||
|
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 |
---|---|---|
|
@@ -133,6 +133,7 @@ tor.pid | |
|
||
# Default data directory | ||
/data | ||
/test_data | ||
|
||
# MacOS | ||
.DS_Store |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, overwriting the settings like this strikes me as a bad idea -- to me intuitively settings should be immutable, avoids having value A at some time, then a bit of code runs, then it's now value B, things break or are confusing. Or potentially if you just import this file, it'll mangle the settings because the mutation doesn't happen in a function. Also as they're currently configured, they'll be type-checked on load (and will error if a setting is wrong), but they won't be when you re-assign them like this.
Instead it'd be 'better' to use a separate
.env
for the tests (docs)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a hard override on settings for conftest. i think its fine, mixing up different
.env
is error prone too. i could just prefix the poetry run command insideMakefile
but then running it withpoetry run pytest
does not work.