Skip to content

Commit 4e2b8cd

Browse files
committed
fix: remove obsolete RocketMode test from ScriptMetadataParsingTest.cs
Deleted the TestRocketModeConfigFromIni method to resolve merge conflicts and streamline the test suite. This change improves code clarity and focuses on relevant configuration tests.
1 parent 344ac2c commit 4e2b8cd

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

dev/pyRevitLoader/pyRevitExtensionParserTester/ScriptMetadataParsingTest.cs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ public void TestBundleOverridesScriptMetadata()
213213
}
214214

215215
[Test]
216-
<<<<<<< HEAD
217216
public void TestLoggingLevelConfigFromIni()
218217
{
219218
var configPath = Path.Combine(TestTempDir, "pyRevit_config_logging.ini");
@@ -316,41 +315,6 @@ public void TestFileLoggingAndAutoUpdateConfigFromIni()
316315
Assert.AreEqual("C:\\custom.css", PyRevitConfig.Load(configPath2).OutputStyleSheet);
317316

318317
Assert.Pass("FileLogging / AutoUpdate / OutputStyleSheet config parsing validated successfully.");
319-
=======
320-
public void TestRocketModeConfigFromIni()
321-
{
322-
var configPath = Path.Combine(TestTempDir, "pyRevit_config.ini");
323-
324-
// Default value: false when not set
325-
File.WriteAllText(configPath, "");
326-
var config1 = PyRevitConfig.Load(configPath);
327-
Assert.IsFalse(config1.RocketMode, "Default RocketMode should be false when not set");
328-
329-
// Explicit true
330-
File.WriteAllText(configPath, "[core]\nrocketmode = true");
331-
var config2 = PyRevitConfig.Load(configPath);
332-
Assert.IsTrue(config2.RocketMode, "RocketMode should be true when explicitly set");
333-
334-
// Explicit false
335-
File.WriteAllText(configPath, "[core]\nrocketmode = false");
336-
var config3 = PyRevitConfig.Load(configPath);
337-
Assert.IsFalse(config3.RocketMode, "RocketMode should be false when explicitly set");
338-
339-
// Case insensitive
340-
File.WriteAllText(configPath, "[core]\nrocketmode = TRUE");
341-
var config4 = PyRevitConfig.Load(configPath);
342-
Assert.IsTrue(config4.RocketMode, "RocketMode should be case-insensitive");
343-
344-
// Round-trip write/read
345-
var configPath2 = Path.Combine(TestTempDir, "pyRevit_config_rw.ini");
346-
File.WriteAllText(configPath2, "");
347-
var configRw = PyRevitConfig.Load(configPath2);
348-
configRw.RocketMode = true;
349-
var configRw2 = PyRevitConfig.Load(configPath2);
350-
Assert.IsTrue(configRw2.RocketMode, "RocketMode should persist after write");
351-
352-
Assert.Pass("RocketMode config parsing validated successfully.");
353-
>>>>>>> 31ab6878c4dc2f642a734320882ea92867626f4f
354318
}
355319

356320
[Test]

0 commit comments

Comments
 (0)