You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
282B

  1. from modules.logs import LogView
  2. class TestLogView(object):
  3. def test_get_all_logfiles(self):
  4. LogView._log_directory = "./logs"
  5. log_view = LogView()
  6. logfiles = log_view.get_all_logfiles()
  7. print(logfiles)
  8. assert (len(logfiles) == 2)