Testing: Impersonate Account API
See original GitHub issueOverview
- Currently, mainnet-fork capabilities are limited by not having a way to unlock accounts. We should add a method to the
TestProviderAPI
for unlocking accounts.
I am trying to make my tests have accounts that start off with ERC20s.
Specification
class TestProviderAPI:
def impersonate_account(self, address):
raise NotImplementedError(...) # Override if this feature is supported
Dependencies
Include links to any open issues that must be resolved before this feature can be implemented.
Will also require updating Hardhat plugin
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Test that you login as a user (impersonate) | Acronis Cyber ...
Get started with Test that you login as a user (impersonate), Acronis Account Management by Acronis Cyber Platform on the Postman Public API...
Read more >Impersonate a user while calling an API - Auth0 Community
Hi Auth0 Team,. I was trying to hind out how I can impersonate a user while calling or unit testing an API end...
Read more >Test Security Settings by Impersonation - LabKey Support
Impersonating a user is useful for testing a specific user's permissions or assisting a user having trouble on the site. Select (User) >...
Read more >C# - Asp.net web API test project - how to impersonate a user ...
I am now running my test cases using SimpleImpersonation library. This nugget package allows you to impersonate some user and its really ...
Read more >How can I impersonate a user in the REST API? - ServiceNow
I have a service type login for the API running on a back end system. I would like ot know if a particular...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I think that all makes sense and works out nicely.
So would this be a usage example?
I think this type of feature fits better with #306