Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/AI_Brain / tests/conftest.cs |
| Date | Not specified in source |
| Repository | Janady13/AI_Brain |
| Revision | 6d0767aad08781eb5c4e1eb14a42ec92c437be78 |
| Branch | copilot/convert-python-files-to-csharp |
| Path or archive member | tests/conftest.cs |
| Original SHA-256 | 1d9491ba9fcdf54b43222646da1fd53b06d2a7c5752087a7eef2f0dfb17f48b9 |
| Git blob SHA | f1b74a390f23f6bb987f7e3c31ff71572c9fee7f |
| Reading-copy SHA-256 | 1d9491ba9fcdf54b43222646da1fd53b06d2a7c5752087a7eef2f0dfb17f48b9 |
Recovered source transcript
Download complete source text ↓31 lines · 0.9 KB
// Test configuration and fixtures
using System;
namespace AIBrain.Tests
{
public static class Conftest
{
public static void SetupTestEnvironment()
{
// Set test environment variables
Environment.SetEnvironmentVariable("DRY_RUN", "1");
Environment.SetEnvironmentVariable("PGDATABASE", "test_db");
Environment.SetEnvironmentVariable("PGHOST", "localhost");
}
public static void TeardownTestEnvironment()
{
// Clean up test environment
Environment.SetEnvironmentVariable("DRY_RUN", null);
Environment.SetEnvironmentVariable("PGDATABASE", null);
Environment.SetEnvironmentVariable("PGHOST", null);
}
public static T CreateTestInstance<T>() where T : new()
{
return new T();
}
}
}