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

test: refactor marketplace unit tests according to our testing standards #524

Merged
merged 14 commits into from
Jul 15, 2022

Conversation

dmoka
Copy link
Contributor

@dmoka dmoka commented Jul 14, 2022

Description

Refactor nft marketplace tests according to our testing standards.

Related Issue

Motivation and Context

How Has This Been Tested?

Checklist:

  • I have updated the documentation if necessary.
  • I have added tests to cover my changes, regression test if fixing an issue.
  • This is a breaking change.

@dmoka dmoka changed the title Refactor/marketplace unit tests fix: refactor marketplace unit tests according to our testing standards Jul 14, 2022
@github-actions
Copy link

github-actions bot commented Jul 14, 2022

Crate versions that have been updated:

  • pallet-marketplace: v2.1.1 -> v2.2.0

Runtime version has not been increased.

@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #524 (f621cff) into master (4410e1a) will not change coverage.
The diff coverage is n/a.

❗ Current head f621cff differs from pull request most recent head a882250. Consider uploading reports for the commit a882250 to get more accurate results

@@           Coverage Diff           @@
##           master     #524   +/-   ##
=======================================
  Coverage   81.21%   81.21%           
=======================================
  Files          19       19           
  Lines        1927     1927           
=======================================
  Hits         1565     1565           
  Misses        362      362           
Impacted Files Coverage Δ
pallets/xyk/src/impls.rs 81.81% <0.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 f8d6013...a882250. Read the comment docs.

@mrq1911 mrq1911 changed the title fix: refactor marketplace unit tests according to our testing standards test: refactor marketplace unit tests according to our testing standards Jul 15, 2022
@mrq1911 mrq1911 added this to the 10 milestone Jul 15, 2022
metadata.clone()
));
assert_ok!(NFT::mint(Origin::signed(ALICE), CLASS_ID_0, INSTANCE_ID_0, metadata));
fn make_offer_should_work_when_no_nft_exists() {
Copy link
Member

Choose a reason for hiding this comment

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

this is strange case. @green-jay what is the thinking behind this feature?

# Conflicts:
#	Cargo.lock
#	pallets/marketplace/Cargo.toml
@mrq1911 mrq1911 merged commit c4f6e2f into master Jul 15, 2022
@jak-pan jak-pan deleted the refactor/marketplace-unit-tests branch February 22, 2024 10:57
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.

2 participants