mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
Remove pointless test, change the default theme and fix a small bug
This commit is contained in:
parent
c9e5a8aec8
commit
1bbd62853e
3 changed files with 6 additions and 19 deletions
|
@ -40,7 +40,7 @@ using Nancy.Validation.FluentValidation;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using NUnit.Framework.Constraints;
|
||||||
using PlexRequests.Core;
|
using PlexRequests.Core;
|
||||||
using PlexRequests.Core.SettingModels;
|
using PlexRequests.Core.SettingModels;
|
||||||
using PlexRequests.Store;
|
using PlexRequests.Store;
|
||||||
|
@ -241,20 +241,6 @@ namespace PlexRequests.UI.Tests
|
||||||
Assert.That(body.ErrorMessage, Is.Not.Null.Or.Empty);
|
Assert.That(body.ErrorMessage, Is.Not.Null.Or.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
[Description("Should file the validation")]
|
|
||||||
public void CreateAEmptyRequest()
|
|
||||||
{
|
|
||||||
var browser = new Browser(Bootstrapper);
|
|
||||||
|
|
||||||
var result = browser.Post("/api/requests/", GetBrowser());
|
|
||||||
Assert.That(HttpStatusCode.OK, Is.EqualTo(result.StatusCode));
|
|
||||||
|
|
||||||
var body = JsonConvert.DeserializeObject<ApiModel<string[]>>(result.Body.AsString());
|
|
||||||
Assert.That(body.Data, Is.Not.Null.Or.Empty);
|
|
||||||
Assert.That(body.Error, Is.True);
|
|
||||||
Assert.That(body.ErrorMessage, Is.Not.Null.Or.Empty);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void UpdateUsersPassword()
|
public void UpdateUsersPassword()
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace PlexRequests.UI.Helpers
|
||||||
var settings = GetSettings();
|
var settings = GetSettings();
|
||||||
if (string.IsNullOrEmpty(settings.ThemeName))
|
if (string.IsNullOrEmpty(settings.ThemeName))
|
||||||
{
|
{
|
||||||
settings.ThemeName = Themes.OriginalTheme;
|
settings.ThemeName = Themes.PlexTheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.AppendLine($"<link rel=\"stylesheet\" href=\"{content}/Content/Themes/{settings.ThemeName}\" type=\"text/css\"/>");
|
sb.AppendLine($"<link rel=\"stylesheet\" href=\"{content}/Content/Themes/{settings.ThemeName}\" type=\"text/css\"/>");
|
||||||
|
|
|
@ -48,7 +48,7 @@ using PlexRequests.UI.Helpers;
|
||||||
using PlexRequests.UI.Models;
|
using PlexRequests.UI.Models;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using Nancy.Extensions;
|
||||||
using PlexRequests.Api.Models.Tv;
|
using PlexRequests.Api.Models.Tv;
|
||||||
using PlexRequests.Store.Models;
|
using PlexRequests.Store.Models;
|
||||||
using PlexRequests.Store.Repository;
|
using PlexRequests.Store.Repository;
|
||||||
|
@ -208,7 +208,8 @@ namespace PlexRequests.UI.Modules
|
||||||
|
|
||||||
}).ContinueWith((t) =>
|
}).ContinueWith((t) =>
|
||||||
{
|
{
|
||||||
dbMovies = t.Result.ToDictionary(x => x.ProviderId);
|
var distinctResults = t.Result.DistinctBy(x => x.ProviderId);
|
||||||
|
dbMovies = distinctResults.ToDictionary(x => x.ProviderId);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
Task.WaitAll(taskList.ToArray());
|
Task.WaitAll(taskList.ToArray());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue