Remove main execution block from Quasar model and add configuration files for testing
- Eliminated the main execution block from the Quasar model for cleaner code. - Introduced new configuration files `config_1.conf` and `config_2.conf` for Quasar devices, detailing interface settings and IP configurations. - Added expected output JSON files `config_1.expected.json` and `config_2.expected.json` to validate the parsing of Quasar configurations against expected results.
This commit is contained in:
@@ -21,17 +21,3 @@ class Quasar(BaseDevice):
|
||||
if ether_interface:
|
||||
interfaces.append(ether_interface)
|
||||
return interfaces
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
with open("./test7.txt") as file:
|
||||
data = file.read()
|
||||
quasar = Quasar(data)
|
||||
qt = quasar.parse()
|
||||
print(qt)
|
||||
print()
|
||||
with open("./test8.txt") as file:
|
||||
data = file.read()
|
||||
quasar = Quasar(data)
|
||||
qt = quasar.parse()
|
||||
print(qt)
|
||||
|
||||
Reference in New Issue
Block a user