Skip to content

Commit

Permalink
Add a "live" api test hook for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Moening committed Sep 3, 2019
1 parent 84d0264 commit b83934f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions YNAB.SDK.Tests/YNAB_BudgetsShould.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ public async Task Budgets_AreNotEmpty()
}
}

//[Fact]
public async Task LIVE_API_TESTING_FOR_DEBUG()
{
// Arrange
var realToken = Environment.GetEnvironmentVariable("YNAB_TEST_TOKEN");
var api = new API(realToken);

// Act
var result = api.Budgets.GetBudgetById("14235236-8085-4cf6-9fa6-92c34ed44b0c");
// Assert
Assert.NotNull(result);
}

[Fact]
public async Task Budgets_TestBudgetExists()
{
Expand Down

0 comments on commit b83934f

Please sign in to comment.