Skip to content

Commit

Permalink
Disable sales channel tests
Browse files Browse the repository at this point in the history
Private/custom apps cannot use sales channel APIs and therefore the tests can't be run.
  • Loading branch information
nozzlegear committed Jan 10, 2023
1 parent e8d684c commit d08360a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
13 changes: 6 additions & 7 deletions ShopifySharp.Tests/SalesChannel/CheckoutSalesChannel_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public CheckoutSalesChannel_Tests(CheckoutSalesChannel_Fixture fixture)
this.Fixture = fixture;
}

[Fact(Skip = "Checkouts are disabled on the ShopifySharp development store.")]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Creates_Checkouts()
{
var checkout = await Fixture.Create();

Assert.NotNull(checkout);
}

[Fact(Skip = "Checkouts are disabled on the ShopifySharp development store.")]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Completes_Checkouts()
{
var checkout = await Fixture.Create();
Expand All @@ -40,7 +40,7 @@ public async Task Completes_Checkouts()
Assert.NotNull(checkout);
}

[Fact(Skip = "Checkouts are disabled on the ShopifySharp development store.")]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Gets_Checkouts()
{
var checkout = await Fixture.Create();
Expand All @@ -49,7 +49,7 @@ public async Task Gets_Checkouts()
Assert.NotNull(checkout);
}

[Fact(Skip = "Checkouts are disabled on the ShopifySharp development store.")]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Updates_Checkouts()
{
var checkout = await Fixture.Create();
Expand All @@ -61,7 +61,7 @@ public async Task Updates_Checkouts()
Assert.NotNull(checkout.ShippingLine);
}

[Fact(Skip = "Checkouts are disabled on the ShopifySharp development store.")]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Lists_Checkout_Shipping_Rates()
{
var checkout = await Fixture.Create();
Expand All @@ -70,8 +70,7 @@ public async Task Lists_Checkout_Shipping_Rates()
Assert.NotEmpty(shippingRates);
}


[Fact(Skip = "Checkouts are disabled on the ShopifySharp development store.")]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Stores_CreditCards()
{
var card = new CreditCard()
Expand Down
7 changes: 3 additions & 4 deletions ShopifySharp.Tests/SalesChannel/CollectionListing_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public CollectionListing_Tests(CollectionListing_Tests_Fixture fixture)
this.Fixture = fixture;
}

[Fact]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Lists_Collections_NoFilter()
{
var list = await Fixture.Service.ListAsync();
Expand All @@ -32,7 +32,7 @@ public async Task Lists_Collections_NoFilter()
}
}

[Fact]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Lists_Collection_ProductIds_NoFilter()
{
var list = await Fixture.Service.ListAsync();
Expand All @@ -49,8 +49,7 @@ public async Task Lists_Collection_ProductIds_NoFilter()
}
}


[Fact]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Retrieve_Specific_Collection()
{
var list = await Fixture.Service.ListAsync();
Expand Down
5 changes: 3 additions & 2 deletions ShopifySharp.Tests/SalesChannel/ProductListing_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ public ProductListing_Tests(ProductListing_Tests_Fixture fixture)
{
this.Fixture = fixture;
}
[Fact]

[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Counts_Products()
{
var count = await Fixture.Service.CountAsync();

Assert.True(count > 0);
}

[Fact]
[Fact(Skip = "Sales channel tests cannot be run with ShopifySharp's private/custom app.")]
public async Task Lists_Products_NoFilter()
{
var list = await Fixture.Service.ListAsync();
Expand Down

0 comments on commit d08360a

Please sign in to comment.