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

Update NftDetectionController tests to not create networkController i… #1053

Merged
merged 4 commits into from
Jan 17, 2023

Conversation

BelfordZ
Copy link
Contributor

@BelfordZ BelfordZ commented Jan 10, 2023

No NetworkController in tests

Description:
Mocking the behaviour of the network controller makes the tests more flexible, and lessens the burden of cleanup / maintainability of the tests. This PR removes the NetworkController from the NftDetectionController tests.

partially fixes #1051

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Though please update the PR description before merging (Edit: Done)

@BelfordZ BelfordZ merged commit abc173f into main Jan 17, 2023
@BelfordZ BelfordZ deleted the fix/nft-detection-tests-no-network branch January 17, 2023 18:20
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
#1053)

**No NetworkController in tests**

**Description**:
Mocking the behaviour of the network controller makes the tests more
flexible, and lessens the burden of cleanup / maintainability of the
tests. This PR removes the `NetworkController` from the
`NftDetectionController` tests.

partially fixes #1051

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
#1053)

**No NetworkController in tests**

**Description**:
Mocking the behaviour of the network controller makes the tests more
flexible, and lessens the burden of cleanup / maintainability of the
tests. This PR removes the `NetworkController` from the
`NftDetectionController` tests.

partially fixes #1051

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests should not create a NetworkController instance where possible
2 participants