From ad91e72668e1ded85b6b9c2b133506349a5d5e97 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:13:14 -0500 Subject: [PATCH 01/19] added unit tests for check_file_exists() and create_link_reference() --- test/unit-tests/test_utilities.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index c4fac30..9c0c172 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -1,5 +1,5 @@ import unittest -from projectbot.Utilities import is_recongized_difficulty +from projectbot.Utilities import is_recongized_difficulty, create_link_reference, check_file_exists class ReconigzedDifficulty(unittest.TestCase): def test_recnogized_difficulty_all(self): @@ -37,3 +37,11 @@ def test_recnogized_difficulty_uppercase_medium(self): def test_recnogized_difficulty_uppercase_hard(self): is_recognized = is_recongized_difficulty('HARD') self.assertTrue(is_recognized, 'Is not a reconigzed difficulty') +class LinkFormatted(unittest.TestCase): + def test_link_format(self): + link = create_link_reference('Google','https://www.google.com/') + self.assertEqual(link, '- [Google][https://google.com]') +class FileExists(unittest.TestCase): + def test_does_file_exist(self): + file = check_file_exists('src/bot.py') + self.assertTrue(file, "File path does not exist") \ No newline at end of file From f1c2a3557f7d7eb85f4feafa9b5745e19c36420c Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:24:56 -0500 Subject: [PATCH 02/19] fixed typos --- .idea/.gitignore | 3 +++ .idea/BeginnerProjectBot1.iml | 14 ++++++++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 6 files changed, 41 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/BeginnerProjectBot1.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/BeginnerProjectBot1.iml b/.idea/BeginnerProjectBot1.iml new file mode 100644 index 0000000..8e5446a --- /dev/null +++ b/.idea/BeginnerProjectBot1.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9f65dfd --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..13089c4 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From 61af78a60925e004c2cf27bbc4076b0270205a5c Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:27:41 -0500 Subject: [PATCH 03/19] fixed imports --- test/unit-tests/test_utilities.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 9c0c172..a2f42c3 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -1,5 +1,7 @@ import unittest -from projectbot.Utilities import is_recongized_difficulty, create_link_reference, check_file_exists +from projectbot.Utilities import is_recongized_difficulty +from projectbot.Utilities import create_link_reference +from projectbot.Utilities import check_file_exists class ReconigzedDifficulty(unittest.TestCase): def test_recnogized_difficulty_all(self): From 961f0e3e87ad92951e0fdda03b76648deee8394e Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:32:05 -0500 Subject: [PATCH 04/19] hopefully fixed imports --- test/unit-tests/test_utilities.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index a2f42c3..520ff89 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -1,7 +1,5 @@ import unittest -from projectbot.Utilities import is_recongized_difficulty -from projectbot.Utilities import create_link_reference -from projectbot.Utilities import check_file_exists +from projectbot.Utilities import * class ReconigzedDifficulty(unittest.TestCase): def test_recnogized_difficulty_all(self): From 085b1560bef4200350d8f675c7cb85beea2bc89c Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:38:16 -0500 Subject: [PATCH 05/19] fixed @srz2 errors in test_utilities.py with import statements, added more unit tests described in #32 --- test/unit-tests/test_utilities.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 520ff89..f01b7bb 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -1,5 +1,8 @@ import unittest -from projectbot.Utilities import * + +from src.projectbot.Utilities import is_recongized_difficulty, check_file_exists +from src.projectbot.Utilities import ResponseFormatter + class ReconigzedDifficulty(unittest.TestCase): def test_recnogized_difficulty_all(self): @@ -39,7 +42,8 @@ def test_recnogized_difficulty_uppercase_hard(self): self.assertTrue(is_recognized, 'Is not a reconigzed difficulty') class LinkFormatted(unittest.TestCase): def test_link_format(self): - link = create_link_reference('Google','https://www.google.com/') + url = ResponseFormatter() + link = url.create_link_reference('Google','https://www.google.com/') self.assertEqual(link, '- [Google][https://google.com]') class FileExists(unittest.TestCase): def test_does_file_exist(self): From 86eeb73bc1532f53214d3d4b6d6795df13088b04 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:41:27 -0500 Subject: [PATCH 06/19] file locations hopefully fixed --- test/unit-tests/test_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index f01b7bb..f8642d1 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -1,7 +1,7 @@ import unittest -from src.projectbot.Utilities import is_recongized_difficulty, check_file_exists -from src.projectbot.Utilities import ResponseFormatter +from BeginnerProjectBot.src.projectbot.Utilities import is_recongized_difficulty, check_file_exists +from BeginnerProjectBot.src.projectbot.Utilities import ResponseFormatter class ReconigzedDifficulty(unittest.TestCase): From 16a22d2df32d750f2c137d987161e4b2cca25795 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:43:51 -0500 Subject: [PATCH 07/19] file locations hopefully fixed --- test/unit-tests/test_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index f8642d1..1cefbd2 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -1,7 +1,7 @@ import unittest -from BeginnerProjectBot.src.projectbot.Utilities import is_recongized_difficulty, check_file_exists -from BeginnerProjectBot.src.projectbot.Utilities import ResponseFormatter +from projectbot.Utilities import is_recongized_difficulty, check_file_exists +from projectbot.Utilities import ResponseFormatter class ReconigzedDifficulty(unittest.TestCase): From 2297b563c6014bdb7ae26397b12af3740f4b3dfc Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:47:24 -0500 Subject: [PATCH 08/19] tests fixed, sorry for all the commits --- test/unit-tests/test_utilities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 1cefbd2..62dadaa 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -42,10 +42,10 @@ def test_recnogized_difficulty_uppercase_hard(self): self.assertTrue(is_recognized, 'Is not a reconigzed difficulty') class LinkFormatted(unittest.TestCase): def test_link_format(self): - url = ResponseFormatter() + url = ResponseFormatter('https://github.com/srz2/BeginnerProjectBot') link = url.create_link_reference('Google','https://www.google.com/') self.assertEqual(link, '- [Google][https://google.com]') class FileExists(unittest.TestCase): def test_does_file_exist(self): - file = check_file_exists('src/bot.py') - self.assertTrue(file, "File path does not exist") \ No newline at end of file + file = check_file_exists('src/bot.py', 'Does not exist') + self.assertTrue(file, "Method is broken") \ No newline at end of file From 9c41009c52c8e941a3811389866b192d2be2eba7 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:49:43 -0500 Subject: [PATCH 09/19] fixed link assertion --- test/unit-tests/test_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 62dadaa..8b4562e 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -44,7 +44,7 @@ class LinkFormatted(unittest.TestCase): def test_link_format(self): url = ResponseFormatter('https://github.com/srz2/BeginnerProjectBot') link = url.create_link_reference('Google','https://www.google.com/') - self.assertEqual(link, '- [Google][https://google.com]') + self.assertEqual(link, '- [Google][https://google.com]\n') class FileExists(unittest.TestCase): def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') From c04378d67f77c70d7e8283fb5651f82cd3cac1c8 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:51:52 -0500 Subject: [PATCH 10/19] fixed link assertion --- test/unit-tests/test_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 8b4562e..138bf76 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -44,7 +44,7 @@ class LinkFormatted(unittest.TestCase): def test_link_format(self): url = ResponseFormatter('https://github.com/srz2/BeginnerProjectBot') link = url.create_link_reference('Google','https://www.google.com/') - self.assertEqual(link, '- [Google][https://google.com]\n') + self.assertEqual(link, '- [Google](https://google.com/)\n') class FileExists(unittest.TestCase): def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') From ff0b3eb6004ebea643429664c6492aab43e6a4a8 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 21:53:44 -0500 Subject: [PATCH 11/19] test def error --- test/unit-tests/test_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 138bf76..0d6d394 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -43,7 +43,7 @@ def test_recnogized_difficulty_uppercase_hard(self): class LinkFormatted(unittest.TestCase): def test_link_format(self): url = ResponseFormatter('https://github.com/srz2/BeginnerProjectBot') - link = url.create_link_reference('Google','https://www.google.com/') + link = url.create_link_reference('Google','https://google.com/') self.assertEqual(link, '- [Google](https://google.com/)\n') class FileExists(unittest.TestCase): def test_does_file_exist(self): From 1931ac9320d7b9ee72a8700166858ece6c98be7d Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 22:01:35 -0500 Subject: [PATCH 12/19] added error msg --- test/unit-tests/test_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 0d6d394..a67408e 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -44,7 +44,7 @@ class LinkFormatted(unittest.TestCase): def test_link_format(self): url = ResponseFormatter('https://github.com/srz2/BeginnerProjectBot') link = url.create_link_reference('Google','https://google.com/') - self.assertEqual(link, '- [Google](https://google.com/)\n') + self.assertEqual(link, '- [Google](https://google.com/)\n', 'Link not formatted') class FileExists(unittest.TestCase): def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') From 08c0404e76236e6949908a7640c4814ad537e7f8 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sat, 6 Feb 2021 22:07:07 -0500 Subject: [PATCH 13/19] don't know why that check failed?? --- test/unit-tests/test_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index a67408e..99d274c 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -48,4 +48,4 @@ def test_link_format(self): class FileExists(unittest.TestCase): def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') - self.assertTrue(file, "Method is broken") \ No newline at end of file + self.assertTrue(file, "Method is broken!") \ No newline at end of file From aead9e6cf7d644131216f8c8ec99be4ae1e08eb3 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sun, 7 Feb 2021 16:56:35 -0500 Subject: [PATCH 14/19] added negative test to FileExists, changed ResponseFormatter to ingest from prawn.ini --- test/unit-tests/test_utilities.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 99d274c..a3908d1 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -2,6 +2,8 @@ from projectbot.Utilities import is_recongized_difficulty, check_file_exists from projectbot.Utilities import ResponseFormatter +import configparser +from projectbot.Constants import Asset class ReconigzedDifficulty(unittest.TestCase): @@ -42,10 +44,15 @@ def test_recnogized_difficulty_uppercase_hard(self): self.assertTrue(is_recognized, 'Is not a reconigzed difficulty') class LinkFormatted(unittest.TestCase): def test_link_format(self): - url = ResponseFormatter('https://github.com/srz2/BeginnerProjectBot') + config = configparser.ConfigParser() + config.read(Asset.file_praw_ini) + url = ResponseFormatter(config['DEFAULT']['repo_url']) link = url.create_link_reference('Google','https://google.com/') self.assertEqual(link, '- [Google](https://google.com/)\n', 'Link not formatted') class FileExists(unittest.TestCase): def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') - self.assertTrue(file, "Method is broken!") \ No newline at end of file + self.assertTrue(file, "Method is broken!") + def test_does_file_not_exist(self): + file = check_file_exists(None) + self.assertFalse(file, 'Method always returns True!') \ No newline at end of file From e6efeffe2dc99a485abb7f43e6dd33a03dffa58b Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sun, 7 Feb 2021 16:59:01 -0500 Subject: [PATCH 15/19] added .idea to .gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c525d13..9f744c4 100644 --- a/.gitignore +++ b/.gitignore @@ -142,4 +142,7 @@ cython_debug/ */assets/* # .vscode -.vscode/ \ No newline at end of file +.vscode/ + +# PyCharm .idea +.idea/ \ No newline at end of file From af65e8374842d8b3fff77cb8a9f126cb6c3ac1d6 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sun, 7 Feb 2021 17:04:45 -0500 Subject: [PATCH 16/19] error msg for check_file_exists() --- test/unit-tests/test_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index a3908d1..595d65e 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -54,5 +54,5 @@ def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') self.assertTrue(file, "Method is broken!") def test_does_file_not_exist(self): - file = check_file_exists(None) + file = check_file_exists(None, 'No file found') self.assertFalse(file, 'Method always returns True!') \ No newline at end of file From fb5af859f08a7387cc371ab1aa7041433689229e Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Sun, 7 Feb 2021 17:09:13 -0500 Subject: [PATCH 17/19] fixed passing NoneType --- test/unit-tests/test_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index 595d65e..ab3e7a3 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -46,7 +46,7 @@ class LinkFormatted(unittest.TestCase): def test_link_format(self): config = configparser.ConfigParser() config.read(Asset.file_praw_ini) - url = ResponseFormatter(config['DEFAULT']['repo_url']) + url = ResponseFormatter(config['App Information']['repo_url']) link = url.create_link_reference('Google','https://google.com/') self.assertEqual(link, '- [Google](https://google.com/)\n', 'Link not formatted') class FileExists(unittest.TestCase): @@ -54,5 +54,5 @@ def test_does_file_exist(self): file = check_file_exists('src/bot.py', 'Does not exist') self.assertTrue(file, "Method is broken!") def test_does_file_not_exist(self): - file = check_file_exists(None, 'No file found') + file = check_file_exists('abcd', 'No file found') self.assertFalse(file, 'Method always returns True!') \ No newline at end of file From 3dadaaa02a70232a12c027f7d02478b9be7bfd72 Mon Sep 17 00:00:00 2001 From: posiaden123 <64321652+posiaden123@users.noreply.github.com> Date: Mon, 8 Feb 2021 09:59:53 -0500 Subject: [PATCH 18/19] Delete .idea directory --- .idea/.gitignore | 3 --- .idea/BeginnerProjectBot1.iml | 14 -------------- .idea/inspectionProfiles/profiles_settings.xml | 6 ------ .idea/misc.xml | 4 ---- .idea/modules.xml | 8 -------- .idea/vcs.xml | 6 ------ 6 files changed, 41 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/BeginnerProjectBot1.iml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/BeginnerProjectBot1.iml b/.idea/BeginnerProjectBot1.iml deleted file mode 100644 index 8e5446a..0000000 --- a/.idea/BeginnerProjectBot1.iml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 9f65dfd..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 13089c4..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file From d49e0f94024688e916319db97c6c5e4714ddaca0 Mon Sep 17 00:00:00 2001 From: posiaden123 Date: Mon, 8 Feb 2021 10:08:44 -0500 Subject: [PATCH 19/19] ingest repo_url from .ini --- test/unit-tests/test_utilities.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/unit-tests/test_utilities.py b/test/unit-tests/test_utilities.py index ab3e7a3..d3c62d7 100644 --- a/test/unit-tests/test_utilities.py +++ b/test/unit-tests/test_utilities.py @@ -3,7 +3,7 @@ from projectbot.Utilities import is_recongized_difficulty, check_file_exists from projectbot.Utilities import ResponseFormatter import configparser -from projectbot.Constants import Asset +from projectbot.Configuration import Configuration class ReconigzedDifficulty(unittest.TestCase): @@ -44,9 +44,10 @@ def test_recnogized_difficulty_uppercase_hard(self): self.assertTrue(is_recognized, 'Is not a reconigzed difficulty') class LinkFormatted(unittest.TestCase): def test_link_format(self): - config = configparser.ConfigParser() - config.read(Asset.file_praw_ini) - url = ResponseFormatter(config['App Information']['repo_url']) + parser = Configuration() + parser.init_config_with_ini() + config = parser.config + url = ResponseFormatter(config['repo_url']) link = url.create_link_reference('Google','https://google.com/') self.assertEqual(link, '- [Google](https://google.com/)\n', 'Link not formatted') class FileExists(unittest.TestCase):