Skip to content

Commit

Permalink
Update test_analysis.py
Browse files Browse the repository at this point in the history
TAKE 2
  • Loading branch information
eletoups authored Jun 6, 2024
1 parent 25ec302 commit c1e209b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions alfred/tests/test_analysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import alfred
import unittest
import altair as alt
import csv
import matplotlib.pyplot as plt
Expand All @@ -15,10 +16,10 @@
data_path = os.path.join(alfred.__path__[0], 'data/sorted_test_data')

class TestCountSwappedModules(unittest.TestCase):
def setUp(self):
self.valid_directory = os.path.join(data_path, 'all_buses/')
def setUp(self):
self.valid_directory = os.path.join(data_path, 'all_buses/')

def test_count_swapped_modules_output(self):
def test_count_swapped_modules_output(self):
# Capture the output of the function
captured_output = StringIO()
sys.stdout = captured_output
Expand All @@ -38,7 +39,7 @@ def test_count_swapped_modules_output(self):
self.assertIn("Count of '1':", captured_output_str)
self.assertIn("0 = healthy and 1 = swapped", captured_output_str)
def tearDown(self):
pass
pass

if __name__ == '__main__':
unittest.main()

0 comments on commit c1e209b

Please sign in to comment.