mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 17:27:18 +00:00
added categories to integration tests
This commit is contained in:
parent
bd4856dad8
commit
4ad7ce8363
2 changed files with 4 additions and 2 deletions
|
@ -95,8 +95,6 @@ namespace NzbDrone.Integration.Test.Client
|
|||
var response = _restClient.Execute(request);
|
||||
_logger.Info("Response: {0}", response.Content);
|
||||
|
||||
response.StatusCode.Should().Be(statusCode);
|
||||
|
||||
if (response.ErrorException != null)
|
||||
{
|
||||
throw response.ErrorException;
|
||||
|
@ -104,6 +102,8 @@ namespace NzbDrone.Integration.Test.Client
|
|||
|
||||
response.ErrorMessage.Should().BeBlank();
|
||||
|
||||
response.StatusCode.Should().Be(statusCode);
|
||||
|
||||
return Json.Deserialize<T>(response.Content);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,11 +15,13 @@ using NzbDrone.Core.Datastore;
|
|||
using NzbDrone.Integration.Test.Client;
|
||||
using NzbDrone.Owin;
|
||||
using NzbDrone.Owin.MiddleWare;
|
||||
using NzbDrone.Test.Common.Categories;
|
||||
using RestSharp;
|
||||
|
||||
namespace NzbDrone.Integration.Test
|
||||
{
|
||||
[TestFixture]
|
||||
[IntegrationTest]
|
||||
public abstract class IntegrationTest
|
||||
{
|
||||
private NancyBootstrapper _bootstrapper;
|
||||
|
|
Loading…
Reference in a new issue