1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

added categories to integration tests

This commit is contained in:
kay.one 2013-05-21 22:32:25 -07:00
parent bd4856dad8
commit 4ad7ce8363
2 changed files with 4 additions and 2 deletions

View File

@ -95,8 +95,6 @@ public void Delete(IRestRequest request, HttpStatusCode statusCode = HttpStatusC
var response = _restClient.Execute(request); var response = _restClient.Execute(request);
_logger.Info("Response: {0}", response.Content); _logger.Info("Response: {0}", response.Content);
response.StatusCode.Should().Be(statusCode);
if (response.ErrorException != null) if (response.ErrorException != null)
{ {
throw response.ErrorException; throw response.ErrorException;
@ -104,6 +102,8 @@ public void Delete(IRestRequest request, HttpStatusCode statusCode = HttpStatusC
response.ErrorMessage.Should().BeBlank(); response.ErrorMessage.Should().BeBlank();
response.StatusCode.Should().Be(statusCode);
return Json.Deserialize<T>(response.Content); return Json.Deserialize<T>(response.Content);
} }

View File

@ -15,11 +15,13 @@
using NzbDrone.Integration.Test.Client; using NzbDrone.Integration.Test.Client;
using NzbDrone.Owin; using NzbDrone.Owin;
using NzbDrone.Owin.MiddleWare; using NzbDrone.Owin.MiddleWare;
using NzbDrone.Test.Common.Categories;
using RestSharp; using RestSharp;
namespace NzbDrone.Integration.Test namespace NzbDrone.Integration.Test
{ {
[TestFixture] [TestFixture]
[IntegrationTest]
public abstract class IntegrationTest public abstract class IntegrationTest
{ {
private NancyBootstrapper _bootstrapper; private NancyBootstrapper _bootstrapper;