Skip to content
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

Feature async support #118

Closed
wants to merge 4 commits into from
Closed

Feature async support #118

wants to merge 4 commits into from

Conversation

ollipa
Copy link
Member

@ollipa ollipa commented Dec 16, 2021

Closes #115


Supported async functionality:

  • Mocking

    • Mock async instance method
    • Mock async class methods
    • Mock async static methods
    • Mock async functions
    • Async mocking with argument matching (with_args)
  • Spying

    • Spy async instance method
    • Spy async class methods
    • Spy async static methods
    • Spy async functions
    • Async spying with argument matching (with_args)
  • Stubs

    • Stubs with async methods

@ollipa ollipa self-assigned this Dec 16, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2021

Codecov Report

Merging #118 (626ca53) into tests/67-organize-tests (2e0a16e) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           tests/67-organize-tests      #118   +/-   ##
=========================================================
  Coverage                   100.00%   100.00%           
=========================================================
  Files                            4         4           
  Lines                          833       838    +5     
=========================================================
+ Hits                           833       838    +5     
Impacted Files Coverage Δ
src/flexmock/_api.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e0a16e...626ca53. Read the comment docs.

@ollipa ollipa force-pushed the tests/67-organize-tests branch 2 times, most recently from 2124d86 to 0a221b3 Compare January 12, 2022 00:47
Base automatically changed from tests/67-organize-tests to master January 12, 2022 00:59
@ollipa
Copy link
Member Author

ollipa commented Jan 12, 2022

I might give this another try later, but closing this for now.

@ollipa ollipa closed this Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support mocking async functions and methods natively
2 participants