mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix how we clean the download cache (#170)
This commit is contained in:
parent
0cb6f2fa69
commit
9617ca4982
1
.gitignore
vendored
1
.gitignore
vendored
@ -365,3 +365,4 @@ MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
/.idea
|
||||
|
@ -52,14 +52,8 @@ namespace Wabbajack.Lib.Downloaders
|
||||
return;
|
||||
}
|
||||
|
||||
if (!status.is_premium)
|
||||
{
|
||||
Utils.Error($"Automated installs with Wabbajack requires a premium nexus account. {client.Username} is not a premium account.");
|
||||
return;
|
||||
}
|
||||
|
||||
client.ClearUpdatedModsInCache();
|
||||
//var updated = client.GetModsUpdatedSince(Game.Skyrim,DateTime.Now - TimeSpan.FromDays(30));
|
||||
if (status.is_premium) return;
|
||||
Utils.Error($"Automated installs with Wabbajack requires a premium nexus account. {client.Username} is not a premium account.");
|
||||
}
|
||||
|
||||
public class State : AbstractDownloadState
|
||||
|
@ -14,22 +14,22 @@ namespace Wabbajack.Test.ListValidation
|
||||
[TestClass]
|
||||
public class ListValidation
|
||||
{
|
||||
[TestInitialize]
|
||||
public void Setup()
|
||||
[ClassInitialize]
|
||||
public static void SetupNexus()
|
||||
{
|
||||
Directory.CreateDirectory(Consts.ModListDownloadFolder);
|
||||
Utils.LogMessages.Subscribe(s => TestContext.WriteLine(s));
|
||||
var api = new NexusApiClient();
|
||||
api.ClearUpdatedModsInCache();
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
public TestContext TestContext
|
||||
[TestInitialize]
|
||||
public void SetupTest()
|
||||
{
|
||||
get { return testContextInstance; }
|
||||
set { testContextInstance = value; }
|
||||
Directory.CreateDirectory(Consts.ModListDownloadFolder);
|
||||
Utils.LogMessages.Subscribe(s => TestContext.WriteLine(s));
|
||||
}
|
||||
|
||||
public TestContext TestContext { get; set; }
|
||||
|
||||
[TestCategory("ListValidation")]
|
||||
[DataTestMethod]
|
||||
[DynamicData(nameof(GetModLists), DynamicDataSourceType.Method)]
|
||||
|
Loading…
Reference in New Issue
Block a user