Esempio n. 1
0
    def run_sprint2():
        error_list = []
        fp = get_data_file_path('data_sprint_2.ged')
        Sprint.logger.error(
            '######################################## starting sprint 2 ... ########################################'
        )
        try:

            Tree().grow(fp).pretty_print()
            usny, usmsk, usam, usdg, usrk = UserStoriesNy(), UserStoriesMSK(
            ), UserStoriesAm(), UserStoriesDg(), UserStoriesRK()
            error_list.extend(usny.us13(fp))
            error_list.extend(usny.us19(fp))
            error_list.extend(usdg.us15(fp))
            error_list.extend(usdg.us12(fp))
            error_list.extend(usrk.us14(fp))
            error_list.extend(usrk.us21(fp))
            error_list.extend(usam.us11(fp))
            error_list.extend(usam.us16(fp))
            error_list.extend(usmsk.us17(fp))
            error_list.extend(usmsk.us18(fp))
            TreeUtils.print_report('Sprint 2 Report', error_list)
        except FileNotFoundError:
            print(f'File not found: {fp}')
        Sprint.logger.error(
            '######################################## ending sprint 2 ... ########################################\n'
        )
Esempio n. 2
0
 def run_sprint1():
     error_list = []
     fp = get_data_file_path('data_sprint_1.ged')
     Sprint.logger.error(
         '######################################## starting sprint 1 ... ########################################'
     )
     try:
         tree = Tree().grow(fp).pretty_print()
         usny, usmsk, usam, usdg, usrk = UserStoriesNy(), UserStoriesMSK(
         ), UserStoriesAm(), UserStoriesDg(), UserStoriesRK()
         error_list.extend(usmsk.us09(fp))
         error_list.extend(usmsk.us10(fp))
         error_list.extend(usny.us01(fp))
         error_list.extend(usny.us08(fp))
         error_list.extend(usam.us02(fp))
         error_list.extend(usam.us06(fp))
         error_list.extend(usdg.us05(fp))
         error_list.extend(usdg.us07(fp))
         error_list.extend(usrk.us03(fp))
         error_list.extend(usrk.us04(fp))
         TreeUtils.print_report('Sprint 1 Report', error_list)
     except FileNotFoundError:
         print(f'File not found: {fp}')
     Sprint.logger.error(
         '######################################## ending sprint 1 ... ########################################\n'
     )
Esempio n. 3
0
    def test_us05(self):
        """ us05 tests """

        self.assertEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us05(
                get_data_file_path('us05.ged'))), ['F1', 'F2'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us05(
                get_data_file_path('us05.ged'))), ['US0507F1', 'US0507F3'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us05(
                get_data_file_path('us05.ged'))), [])
Esempio n. 4
0
    def test_us25(self):
        """ us25 tests """

        self.assertEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us25(
                get_data_file_path('US23&25.ged'))), ['F1', 'F3'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us25(
                get_data_file_path('US23&25.ged'))), ['F1'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us25(
                get_data_file_path('US23&25.ged'))), "")
Esempio n. 5
0
    def test_us23(self):
        """ us23 tests """

        self.assertEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us23(
                get_data_file_path('US23&25.ged'))), ['I3', 'I5', 'I7', 'I9'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us23(
                get_data_file_path('US23&25.ged'))), ['I3', 'I5'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us23(
                get_data_file_path('US23&25.ged'))), [])
Esempio n. 6
0
    def test_us12(self):
        """ us12 tests """

        self.assertEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us12(
                get_data_file_path('us12&15.ged'))), ['I20'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us12(
                get_data_file_path('us12&15.ged'))), ['F1', 'F3'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us12(
                get_data_file_path('us12&15.ged'))), [])
Esempio n. 7
0
    def test_us07(self):
        """ us07 tests """

        self.assertEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us07(
                get_data_file_path('us07.ged'))), ['I1', 'I3'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us07(
                get_data_file_path('us07.ged'))), ['US0507I2', 'US0507I3'])
        self.assertNotEqual(
            UserStoriesDg().get_id_list(UserStoriesDg().us07(
                get_data_file_path('us07.ged'))), [])
Esempio n. 8
0
 def run_sprint3():
     error_list = []
     fp = get_data_file_path('data_sprint_3.ged')
     Sprint.logger.error(
         '######################################## starting sprint 3 ... ########################################'
     )
     Tree().grow(fp).pretty_print()
     usny, usmsk, usam, usdg, usrk = UserStoriesNy(), UserStoriesMSK(
     ), UserStoriesAm(), UserStoriesDg(), UserStoriesRK()
     error_list.extend(usny.us22(fp))
     error_list.extend(usny.us26(fp))
     usrk.us28(fp)
     usrk.us29(fp)
     usam.us27(fp)
     usam.us30(fp)
     error_list.extend(usdg.us23(fp))
     error_list.extend(usdg.us25(fp))
     error_list.extend(usmsk.us20(fp))
     error_list.extend(usmsk.us31(fp))
     TreeUtils.print_report('Sprint 3 Report', error_list)
     Sprint.logger.error(
         '######################################## ending sprint 3 ... ########################################\n'
     )