Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbailey committed Dec 9, 2019
1 parent 9a96de1 commit 09e3e39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion rail/cpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CPI:
def __init__(self) -> None:
url = "https://download.bls.gov/pub/time.series/cu/cu.data.0.Current"
self.cpi = pd.read_csv(url, sep="\t", skipinitialspace=True)
self.cpi.columns = [c.replace(' ', '') for c in self.cpi.columns]
self.cpi.columns = [c.replace(" ", "") for c in self.cpi.columns]

def inflation(self, from_year: int, to_year: int) -> float:
"""
Expand Down
19 changes: 9 additions & 10 deletions tests/test_vulnerability.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@ def test_vulnerabilities(self):
"""
Test vulnerabilities
"""
name = self.threat_event["name"] + " -> " + self.system.path() + " | " + str(self.controls)
self.assertEqual(
self.vulnerabilities[name]["threat_event"],
self.threat_event,
)
self.assertEqual(
self.vulnerabilities[name]["system"], self.system
)
self.assertEqual(
self.vulnerabilities[name]["controls"], self.controls
name = (
self.threat_event["name"]
+ " -> "
+ self.system.path()
+ " | "
+ str(self.controls)
)
self.assertEqual(self.vulnerabilities[name]["threat_event"], self.threat_event)
self.assertEqual(self.vulnerabilities[name]["system"], self.system)
self.assertEqual(self.vulnerabilities[name]["controls"], self.controls)


if __name__ == "__main__":
Expand Down

0 comments on commit 09e3e39

Please sign in to comment.