Browse Source

Ignore pyrunner tests

pull/55/head
Ionite 1 year ago
parent
commit
69b6f0f1c6
No known key found for this signature in database
  1. 10
      StabilityMatrix.Tests/Python/PyRunnerTests.cs

10
StabilityMatrix.Tests/Python/PyRunnerTests.cs

@ -11,7 +11,7 @@ public class PyRunnerTests
private static readonly PyRunner PyRunner = new(); private static readonly PyRunner PyRunner = new();
[ClassInitialize] [ClassInitialize]
public static async Task TestInitialize(TestContext testContext) public static void TestInitialize(TestContext testContext)
{ {
var settingsManager = new SettingsManager(); var settingsManager = new SettingsManager();
if (!settingsManager.TryFindLibrary()) if (!settingsManager.TryFindLibrary())
@ -19,19 +19,21 @@ public class PyRunnerTests
GlobalConfig.LibraryDir = GlobalConfig.HomeDir; GlobalConfig.LibraryDir = GlobalConfig.HomeDir;
PyRunner.HomeDir = GlobalConfig.HomeDir; PyRunner.HomeDir = GlobalConfig.HomeDir;
} }
await PyRunner.Initialize();
} }
[Ignore]
[TestMethod] [TestMethod]
public void PythonEngine_ShouldBeInitialized() public async Task PythonEngine_ShouldBeInitialized()
{ {
await PyRunner.Initialize();
Assert.IsTrue(PythonEngine.IsInitialized); Assert.IsTrue(PythonEngine.IsInitialized);
} }
[Ignore]
[TestMethod] [TestMethod]
public async Task RunEval_ShouldReturnOutput() public async Task RunEval_ShouldReturnOutput()
{ {
await PyRunner.Initialize();
// Arrange // Arrange
const string script = "print('Hello World')"; const string script = "print('Hello World')";

Loading…
Cancel
Save