Skip to content

Commit

Permalink
fix(pylint): fix pylint error of duplicate code
Browse files Browse the repository at this point in the history
Signed-off-by: Amos Kong <[email protected]>
  • Loading branch information
amoskong authored and fruch committed Feb 19, 2020
1 parent 72d3e42 commit 8f369d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 0 additions & 11 deletions unit_tests/test_prometheus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import time
import unittest
import tempfile
import shutil
import json
import requests
Expand Down Expand Up @@ -126,16 +125,6 @@ def stop(self, timeout=None):


class PrometheusAlertManagerTest(unittest.TestCase):
temp_dir = None

@classmethod
def setUpClass(cls):
cls.temp_dir = tempfile.mkdtemp()

@classmethod
def tearDownClass(cls):
# stop_events_device()
shutil.rmtree(cls.temp_dir)

def test_alert_manager_listener_artificial_run(self):
with open(os.path.join(os.path.dirname(__file__),
Expand Down
5 changes: 2 additions & 3 deletions unit_tests/test_send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ class EmailReporterTest(unittest.TestCase):
temp_dir = None

@classmethod
def setUpClass(cls):
def setUpClass(cls): # pylint: disable=invalid-name
cls.temp_dir = tempfile.mkdtemp()

@classmethod
def tearDownClass(cls):
# stop_events_device()
def tearDownClass(cls): # pylint: disable=invalid-name
shutil.rmtree(cls.temp_dir)

def _get_report_data(self, zipfile_path):
Expand Down

0 comments on commit 8f369d3

Please sign in to comment.