Skip to content

Commit 9b5113f

Browse files
committed
Add TestBase with Register License
1 parent 4fe708d commit 9b5113f

12 files changed

Lines changed: 18 additions & 12 deletions

MyApp.Tests/AgentTasks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace MyApp.Tests;
66

77
[Explicit("Integration tests")]
8-
public class AgentTasks
8+
public class AgentTasks : TestBase
99
{
1010
/** Initialize VMs:
1111
# curl -fsSL -O http://192.168.4.200:8000/comfy/init.sh && bash ./init.sh comfy1 f16764eda958450d978b28356795cf8b ak-b75b80d3a11c46e29622cdf42c8cfe2c

MyApp.Tests/ComfyAgentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace MyApp.Tests;
1010

1111
[Explicit("IntegrationTest")]
12-
public class ComfyAgentTests
12+
public class ComfyAgentTests : TestBase
1313
{
1414
private IServiceProvider serviceProvider;
1515

MyApp.Tests/ComfyInstallerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using NUnit.Framework;
55
using ServiceStack;
66

7-
namespace AiServer.Tests;
7+
namespace MyApp.Tests;
88

99
/* Using Comfy Manager:
1010
* Install Model: POST http://localhost:7860/api/manager/queue/install_model
@@ -26,7 +26,7 @@ namespace AiServer.Tests;
2626
* Node List: https://github.com/Comfy-Org/ComfyUI-Manager/blob/main/custom-node-list.json
2727
*/
2828
[Explicit("Integration tests")]
29-
public class ComfyInstallerTests
29+
public class ComfyInstallerTests : TestBase
3030
{
3131
string ComfyEndpoint = "http://localhost:8188";
3232

MyApp.Tests/ComfyMergeWorkflowTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace MyApp.Tests;
99

10-
public class ComfyMergeWorkflowTests
10+
public class ComfyMergeWorkflowTests : TestBase
1111
{
1212
private IServiceProvider serviceProvider;
1313
string ComfyEndpoint = "http://localhost:7860";

MyApp.Tests/ComfyWorkflowExecuteTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace MyApp.Tests;
2121
* Text Encoders: http://localhost:7860/api/experiment/models/text_encoders
2222
*/
2323
[Explicit("Integration tests")]
24-
public class ComfyWorkflowExecuteTests
24+
public class ComfyWorkflowExecuteTests : TestBase
2525
{
2626
private IServiceProvider serviceProvider;
2727
// string ComfyEndpoint = "http://localhost:7860";

MyApp.Tests/ComfyWorkflowParseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace MyApp.Tests;
1010

11-
public class ComfyWorkflowParseTests
11+
public class ComfyWorkflowParseTests : TestBase
1212
{
1313
private IServiceProvider serviceProvider;
1414
string ComfyEndpoint = "http://localhost:7860";

MyApp.Tests/IntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace MyApp.Tests;
88

9-
public class IntegrationTest
9+
public class IntegrationTest : TestBase
1010
{
1111
const string BaseUri = "http://localhost:2000/";
1212
private readonly ServiceStackHost appHost;

MyApp.Tests/MigrationTasks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace MyApp.Tests;
88

99
[TestFixture, Explicit, Category(nameof(MigrationTasks))]
10-
public class MigrationTasks
10+
public class MigrationTasks : TestBase
1111
{
1212
IDbConnectionFactory ResolveDbFactory() => new ConfigureDb().ConfigureAndResolve<IDbConnectionFactory>();
1313
Migrator CreateMigrator() => new(ResolveDbFactory(), typeof(Migration1000).Assembly);

MyApp.Tests/NodeComfyConverterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace MyApp.Tests;
1313

1414
[Explicit("Integration tests")]
15-
public class NodeComfyConverterTests
15+
public class NodeComfyConverterTests : TestBase
1616
{
1717
[Test]
1818
public void Can_deserialize_Api_Prompt()

MyApp.Tests/OllamaGenerateTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace MyApp.Tests;
77

88
[Explicit("Integration tests")]
9-
public class OllamaGenerateTests
9+
public class OllamaGenerateTests : TestBase
1010
{
1111
const string BaseUrl = "https://localhost:5001";
1212
private string ApiKey = Environment.GetEnvironmentVariable("AI_SERVER_API_KEY");

0 commit comments

Comments
 (0)