switch to having full_name/identifier instead of identifier/output_markdown_file
[utils.git] / src / budget_sync / test / test_write_budget_markdown.py
index 13b4716860e62821153aaf6f0bd6d794292cb4f5..c6dba2f8b8e7f1a441cbaf58461fb228e70114fe 100644 (file)
@@ -27,9 +27,9 @@ class TestWriteBudgetMarkdown(unittest.TestCase):
             [milestones]
             [people."person1"]
             email = "person1@example.com"
-            output_markdown_file = "person1.mdwn"
+            full_name = "Person One"
             [people."person2"]
-            output_markdown_file = "person2.mdwn"
+            full_name = "Person Two"
             """)
         budget_graph = BudgetGraph([
             MockBug(bug_id=1,
@@ -49,9 +49,11 @@ class TestWriteBudgetMarkdown(unittest.TestCase):
                 "/": DIR,
                 "/output_dir": DIR,
                 '/output_dir/person1.mdwn': b'<!-- autogenerated by '
-                b'budget-sync -->\n\n# person1\n\n\n\n# Status Tracking\n\n',
+                b'budget-sync -->\n\n# Person One (person1)\n\n\n\n#'
+                b' Status Tracking\n\n',
                 '/output_dir/person2.mdwn': b'<!-- autogenerated by '
-                b'budget-sync -->\n\n# person2\n\n\n\n# Status Tracking\n\n',
+                b'budget-sync -->\n\n# Person Two (person2)\n\n\n\n#'
+                b' Status Tracking\n\n',
             }, filesystem.files)
     # TODO: add more test cases