-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Switch to pytest #788
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
Merged
Switch to pytest #788
Changes from all commits
Commits
Show all changes
197 commits
Select commit
Hold shift + click to select a range
15edf67
need travis test
Eldinnie 29f6c2c
sdf
Eldinnie d8a5943
some tests
Eldinnie 2b2c734
travis
Eldinnie efe0c90
Add coverage and travis folding
jsmnbom 1c67e36
Add pytest version of test_official
jsmnbom a56ef94
Small changes
jsmnbom 97b3fd6
Add pytest ini file configuration and close file handle properly
jsmnbom 1983691
making stuff look good :D
Eldinnie 9bd47bc
bash at top
Eldinnie f73025f
Only ignore resource warning on py3
jsmnbom 35573ee
Split travis folding into plugin
jsmnbom 2438450
test_chat
Eldinnie 4e89dac
Merge remote-tracking branch 'origin/pytest' into pytest
Eldinnie 2bc4143
id instead of _id
Eldinnie b819072
starting test_chat_member
Eldinnie 0169f57
test_chatmember
Eldinnie 6f11699
tart test_constant
Eldinnie 58de4a4
test_constants
Eldinnie 94b8e61
start test_choseninlineresult
Eldinnie f161a08
test_choseninlineresult
Eldinnie 34df4f3
start test_contact
Eldinnie 7b05fe2
test_contact
Eldinnie 96e3248
start test_document
Eldinnie e5b14fc
test_document
Eldinnie 860d372
tweak test_audio
Eldinnie 9c223d9
start test_file
Eldinnie bb5a1ca
test_file
Eldinnie 0b0f64e
start test_filters
Eldinnie a246f73
Minor changes
jsmnbom 880bd7b
start forcereply
jsmnbom 851b2d9
ForceReply
jsmnbom 56e7e51
Add a migration helper
jsmnbom fedb99f
start game
jsmnbom db89c06
Game
jsmnbom bb271e3
Make migration tool smarter and move it to root
jsmnbom 4a76fc5
test_helpers
jsmnbom c61d3bc
start inlinekeyboardbutton
jsmnbom 9ec0c14
inlinekeyboardbutton
jsmnbom 02c7dc3
inlinekeyboardmarkup
jsmnbom 31bae4a
start inlinequery
jsmnbom e0b058e
inlinequery
jsmnbom f9a7457
Use proper snake_case and teach migrate tool to automatically convert
jsmnbom 309859c
Improve travis folding so we can turn verbosity back on
jsmnbom 7b61599
Lazy fix for unicode error
jsmnbom 7a29ee6
More travis prettification
jsmnbom c029e85
Mark contact sending as expected to fail
jsmnbom 7828f4c
Use to_timstamp helper so tests work on py <3.3
jsmnbom 2b7d044
Add pre-commit-hooks to test
jsmnbom 424a2db
Add build test
jsmnbom 0621b37
test_filters
Eldinnie 319f679
fix test_file
Eldinnie 87789a8
Adjustments
Eldinnie 6264c75
formatting
Eldinnie 2b7d168
less requests is more better
Eldinnie e78a03f
update migration tool
jsmnbom cc178eb
start inlinequeryresultarticle
jsmnbom 43fe796
inlinequeryresultarticle
jsmnbom e04551f
start inlinequeryresult* (non cached)
jsmnbom 2131d73
inlinequeryresult* (non cached)
jsmnbom 8dc7fdc
Unify test names
jsmnbom b818b34
Start inlinequeryresultcached*
jsmnbom 71876c1
inlinequeryresultcached*
jsmnbom 4461e43
inlinequeryresultgame
jsmnbom 6efc545
start jobqueue
jsmnbom 8d2dcdb
JobQueue
jsmnbom 4b27da2
Start input*messagecontent
jsmnbom a338178
input*messagecontent
jsmnbom 0a2b4e2
start invoice
jsmnbom b5f0e34
invoice
jsmnbom e461dbc
start conversationhandler
jsmnbom 160a515
unifying
Eldinnie 4c90140
moved provider_token to session scope in conftest
Eldinnie 33456a0
conversationhandler
jsmnbom 53570e3
small fixes
jsmnbom 090a998
keyboardbutton + labeledprice
jsmnbom 85c54fd
start callbackquery
Eldinnie fd1f5c4
Remove most sleep from conversationhandler tests
jsmnbom 88a5a42
test_callbackquery
Eldinnie 864f1be
oops
Eldinnie 72d27d0
Fixed conversationhandler test
jsmnbom 387ba9d
Speed up jobqueue tests
jsmnbom 0379fbe
Fix audio tests
jsmnbom be4c3c7
Fix jobqueue speed up
jsmnbom be1ec0d
Update requirements and travis config
jsmnbom 814dd2d
test_location
Eldinnie c4f3911
start test_message
Eldinnie 9554d9b
test_message
Eldinnie bfbe563
test_messageenetity
Eldinnie bf63abb
conversationhandler
Eldinnie da99ad0
Small fixes
jsmnbom bf132b9
Start messagequeue
jsmnbom 08629c9
messagequeue
jsmnbom 5d489b3
start orderinfo
jsmnbom 9225204
orderinfo
jsmnbom dd3af85
parsemode
jsmnbom d70cf46
start photo
jsmnbom e4c98bb
fix test_message
Eldinnie 747c114
start commandhandler
Eldinnie 19ffc49
photo
jsmnbom 6187538
commandhandler
Eldinnie c3b25bc
start callbackqueryhandler
Eldinnie f8e72a4
callbackqueryhandler
Eldinnie 4a85835
tiny change to commandhandlertest
jsmnbom 7fea9a7
start shipping and precheckout queries
jsmnbom 7198b03
shipping and precheckout queries
jsmnbom e96ce4b
Move test ini from pytest.ini to setup.cfg
jsmnbom 2c4b882
start replykeyboardmarkup
jsmnbom f24d8ce
replykeyboardmarkup
jsmnbom e022e19
replykeyboardremove
jsmnbom 47f8775
shippingaddress
jsmnbom 6ff1aab
start shippingoption
jsmnbom 5d249e8
shippingoption
jsmnbom 0bff57d
sticker
jsmnbom d6e32de
successfulpayment
jsmnbom 87389fa
start update
jsmnbom e2daea5
Update
jsmnbom d5be8d8
Bot
jsmnbom 6d47d9d
TestJobQueue.test_run_repeating_first should now never fail :D
jsmnbom ae0cbad
Fix replykeyboardremove test
jsmnbom 43f49cb
Fix bot tests
jsmnbom 9e8c002
Fix bot tests more?
jsmnbom d3d44b6
start venue, video and videonote
jsmnbom 66cd550
venue, video and videonote
jsmnbom 30aad6b
voice
jsmnbom 104315d
fixes
jsmnbom e8f7ae7
Make the bot provider more robust for future
jsmnbom 0cea75b
Dispatcher
jsmnbom ea06f07
Updater
jsmnbom 19a801a
Fixes
jsmnbom 1727d74
more fixes?
jsmnbom d04493a
Debugging
jsmnbom e01633d
More debugging!
jsmnbom ef7580e
It works now?
jsmnbom 2ca6461
Fix TestUpdater.test_user_signal
jsmnbom a27313c
More Bot tests
jsmnbom b19b2ef
StickerSet and Maskposistion tests
jsmnbom 8264849
Add sticker test data file
jsmnbom 69fa530
Give up on sticker tests
jsmnbom 47aada3
test X.answer shortcuts
jsmnbom d7e7a9b
Fix export link test on py2
jsmnbom 8753df9
small adjustments and fixes
Eldinnie 675fb9c
reformat code
Eldinnie 1e702ae
small changes improving coverage
Eldinnie 6227a6a
correct the markup_as_dat
Eldinnie eef1ee9
xfail send_contact
Eldinnie 7f91ac9
remove skip_tests from test_bot
Eldinnie fc13e98
rename handler methods
Eldinnie 87fc980
Improve handlers and ChosenInlineResultHandler
Eldinnie 1e7f3ac
InlineQueryHandler
Eldinnie 37edfdd
start messagehandler
Eldinnie cbf936c
MessageHandler
Eldinnie 3ea97fd
PreCheckoutQueryHandler
Eldinnie 451d0dc
shippingqueryhandler
Eldinnie 72d0fdb
scope='class'
Eldinnie ee535de
RegexHandler
Eldinnie b8fd9bd
fix up
Eldinnie e09a60c
string*handler
Eldinnie 161a128
final push
Eldinnie 83d68af
xfail on tests relying on #744
Eldinnie da46b80
xfail webhook tests
Eldinnie ae073dc
TypeHandler
Eldinnie 7ed23c8
start monkeypatching bot methods
Eldinnie 56b8e4e
Update contributing guide to new asserts
jsmnbom 25af9fb
Merge branch 'master' into pytest-e
jsmnbom 8b08f1e
add text_*_urled tests
Eldinnie 7e5085b
Merge remote-tracking branch 'origin/pytest' into pytest
Eldinnie 5f3fbd7
styling
Eldinnie 5239e5b
DispatcherHandlerContinue/Stop
jsmnbom afcba19
Move from temp pytests directory to tests
jsmnbom bf184d4
User
jsmnbom 60f2b87
Forgot import in renaming
jsmnbom cde963b
Fix callback query _id_attrs so it can be compard
jsmnbom 0e78ca4
Fix for contributing guide
jsmnbom 7bb236e
Whoops
jsmnbom 5e352c9
Fix license notice
jsmnbom 9e2e4b3
Forgot tool:pytests testpaths in move
jsmnbom d76b1cd
Complete move
jsmnbom cccffe8
fix kick_chat_member ?
Eldinnie 8812b0f
Move coverage config from coveragerc to setup.cfg
jsmnbom 752e1e7
get_game_high_score test
jsmnbom fb13e2f
Fix/improve monkeypatched bot tests
jsmnbom 5a59d07
small fix
Eldinnie 2e7c086
Skip send_contact on pypy
jsmnbom c7d8f06
Cleanup
jsmnbom 1a6a4b9
Update all instances of nose/nosetests to pytest
jsmnbom e038ac7
Remove individual to_json tests in favour of a single one
jsmnbom 8011722
finishing touches
Eldinnie e48ed60
correction errors
Eldinnie 52fdddd
effective_attachment test and adjustment
Eldinnie ac47cf8
Don't test ABC, and test that ujson is at least consistent if anything
jsmnbom a9eabf7
set chat photo after deleting it, not before
jsmnbom 012a1a0
Allow set_webhook_get_webhook_info_and_delete_webhook to fail harder
jsmnbom bc31994
Make test classes inherit from object
jsmnbom 7fda402
Move migration tool (don't need it anymore)
jsmnbom 9258c86
Whoops
jsmnbom 05f97d2
Turn off branch coverage
jsmnbom 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 +1,9 @@ | ||
flake8 | ||
nose | ||
pep257 | ||
pylint | ||
flaky | ||
yapf | ||
pre-commit | ||
pre-commit-hooks | ||
beautifulsoup4 | ||
rednose | ||
pytest | ||
pytest-timeout |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
aren't we switching out from coveralls?
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.
We are, but that's not in this PR