devops-exercises/tests/syntax_checker_unittest.py

40 lines
857 B
Python
Raw Normal View History

2019-12-21 19:24:54 +01:00
"""
WIP
2019-12-21 19:25:47 +01:00
Yes, we do write tests for our tests.
2019-12-21 19:24:54 +01:00
"""
import unittest
2019-12-21 21:22:32 +01:00
# import pathlib
2019-12-21 19:24:54 +01:00
2019-12-21 21:22:32 +01:00
# from tests import *
# from scripts import get_answered_questions
2019-12-21 19:24:54 +01:00
def open_test_case_file(n: int):
2019-12-21 21:22:32 +01:00
pass
# p = pathlib.Path(
# rf'D:\PycharmProjects\devops-interview-questions\scripts\tests\' + '
# testcase{n}.md')
2019-12-21 19:24:54 +01:00
2019-12-21 21:22:32 +01:00
# with open(p, 'rb') as f:
# file_list = [line.rstrip() for line in f.readlines()]
# return file_list
2019-12-21 19:24:54 +01:00
class QuestionCount(unittest.TestCase):
solutions = (
)
def test_count_case_1(self):
2019-12-21 21:22:32 +01:00
pass
# raw_list = open_test_case_file(1)
# question_list = get_question_list(raw_list)
# answers = get_answered_questions.n_answers(question_list)
2019-12-21 19:24:54 +01:00
2019-12-21 21:22:32 +01:00
# self.assertEqual(len(question_list), 21)
# self.assertEqual(answers, 2)
2019-12-21 19:24:54 +01:00
def test_count_case_2(self):
2019-12-21 19:27:02 +01:00
pass