Upcoming maintenance: Thursday 21 August @ 12:00-14:00 CEST.

Skip to content
Snippets Groups Projects
Commit 4295fcc4 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Pre-merge code cleanup

parent 98b68808
No related branches found
No related tags found
2 merge requests!359Release TeraFlowSDN 5.0,!330Resolve "(NAUDIT) SmartNIC support"
...@@ -76,9 +76,14 @@ def test_retrieve_state(driver: MorpheusApiDriver): ...@@ -76,9 +76,14 @@ def test_retrieve_state(driver: MorpheusApiDriver):
state = driver.GetState(blocking=True) state = driver.GetState(blocking=True)
assert isinstance(state, types.GeneratorType), "Expected an iterator for state" assert isinstance(state, types.GeneratorType), "Expected an iterator for state"
for i, item in enumerate(state): i = 0
#assert len(state) > 0, " State should not be empty" for item in state:
print_data("State Item", item) if i == 0:
print_data("State Item", item)
else:
if item[1] == 'state': continue
print_data("Other Item", item)
i += 1
if i > 3: break if i > 3: break
results = driver.UnsubscribeState([]) results = driver.UnsubscribeState([])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment