Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 7e9e6de

Browse files
author
Emma Rose
committed
Fixing linting errors
1 parent a356a0d commit 7e9e6de

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

alerts/geomodel/execution.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class ExecutionState(NamedTuple):
2020
# alert_name: str
2121
execution_time: datetime
2222

23-
2423
def new(executed_at: Optional[datetime]=None) -> 'ExecutionState':
2524
'''Construct a new `ExecutionState` representing the execution of an
2625
alert at a specific time.
@@ -41,7 +40,6 @@ class Record(NamedTuple):
4140
identifier: Optional[str]
4241
state: ExecutionState
4342

44-
4543
def new(state: ExecutionState) -> 'Record':
4644
'''Construct a new `Record` that, when stored, will result in a new
4745
document being inserted into ElasticSearch.

tests/alerts/test_geomodel_location.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,6 @@ def setup(self):
11951195
self.es_client.delete_index(index, True)
11961196
self.es_client.create_index(index)
11971197

1198-
journal = geomodel.wrap_journal(self.es_client)
11991198
exec_state_store = execution.store(self.es_client)
12001199

12011200
def state(username, locs):
@@ -1207,7 +1206,7 @@ def locality(cfg):
12071206
record = execution.Record.new(execution.ExecutionState.new(
12081207
toUTC(datetime.now()) - timedelta(minutes=2)))
12091208
exec_state_store(record, index)
1210-
1209+
12111210
self.refresh(index)
12121211

12131212
def teardown(self):

0 commit comments

Comments
 (0)