|
@@ -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()
|