mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 01:27:00 +00:00
Fixed btn tests.
This commit is contained in:
parent
2c472d6e3e
commit
f3d31c3ea1
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,7 @@ public void Setup()
|
||||||
Subject.Definition = new IndexerDefinition()
|
Subject.Definition = new IndexerDefinition()
|
||||||
{
|
{
|
||||||
Name = "BroadcastheNet",
|
Name = "BroadcastheNet",
|
||||||
Settings = new BroadcastheNetSettings() { ApiKey = "abc" }
|
Settings = new BroadcastheNetSettings() { ApiKey = "abc", BaseUrl = "https://api.btnapps.net/" }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +133,8 @@ public void should_replace_https_http_as_needed()
|
||||||
{
|
{
|
||||||
var recentFeed = ReadAllText(@"Files/Indexers/BroadcastheNet/RecentFeed.json");
|
var recentFeed = ReadAllText(@"Files/Indexers/BroadcastheNet/RecentFeed.json");
|
||||||
|
|
||||||
|
(Subject.Definition.Settings as BroadcastheNetSettings).BaseUrl = "http://api.btnapps.net/";
|
||||||
|
|
||||||
recentFeed = recentFeed.Replace("http:", "https:");
|
recentFeed = recentFeed.Replace("http:", "https:");
|
||||||
|
|
||||||
Mocker.GetMock<IHttpClient>()
|
Mocker.GetMock<IHttpClient>()
|
||||||
|
|
Loading…
Reference in a new issue