Przeglądaj źródła

Renamed cfg/ -> config/ to match Microsoft's standards

Vsevolod Levitan 1 rok temu
rodzic
commit
3936d01faa
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 0 0
      config/settings.json
  2. 3 3
      tests/test_settings.py

+ 0 - 0
cfg/settings.json → config/settings.json


+ 3 - 3
tests/test_settings.py

@@ -42,7 +42,7 @@ class test_settings(unittest.TestCase):
         man = settings_manager()
         
         # Действие
-        result = man.open(f"{self.projdir}/cfg/settings.json")
+        result = man.open(f"{self.projdir}/config/settings.json")
 
         # Проверка
         assert result == True
@@ -57,7 +57,7 @@ class test_settings(unittest.TestCase):
         settings = None
 
         # Действие
-        man.open(f"{self.projdir}/cfg/settings.json")
+        man.open(f"{self.projdir}/config/settings.json")
         settings = man.settings
         dict = settings.__dict__
 
@@ -82,7 +82,7 @@ class test_settings(unittest.TestCase):
         os.mkdir(dirname)
         print(filename)
         f = open(filename, "w", encoding="UTF-8")
-        f2 = open(f"{self.projdir}/cfg/settings.json", encoding="UTF-8")
+        f2 = open(f"{self.projdir}/config/settings.json", encoding="UTF-8")
         f.write(f2.read())
         f.close()
         f2.close()