Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

extending testApi with decorator #114

Closed
wants to merge 1 commit into from

Conversation

tanhauhau
Copy link
Contributor

@tanhauhau tanhauhau commented Mar 3, 2020

I was thinking about #94 (comment),

would it be useful that we can extending the testAPI to have custom assertions?

or prefer to have helper functions for testing like #115?

@sebmck
Copy link
Contributor

sebmck commented Mar 3, 2020

Seems like an unnecessary abstraction. Is there any downside to just having helper methods?

@tanhauhau
Copy link
Contributor Author

You would have to pass in the t: TestApi into the helper function

@sebmck
Copy link
Contributor

sebmck commented Mar 3, 2020

That seems a lot simpler than having the decorator though. It doesn't seem worth it.

@tanhauhau
Copy link
Contributor Author

Got it!.

@tanhauhau tanhauhau closed this Mar 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants