made tests run
This commit is contained in:
11
README.md
11
README.md
@@ -1,7 +1,6 @@
|
|||||||
# AutoPicture V3
|
# AutoPicture V3
|
||||||
|
|
||||||
Dies ist die dritte Version von AutoPicture.
|
Bildersortierprogramm geschrieben in Python3.12.
|
||||||
|
|
||||||
|
|
||||||
Beispiel Struktur der Sortierung:
|
Beispiel Struktur der Sortierung:
|
||||||
```bash
|
```bash
|
||||||
@@ -44,6 +43,14 @@ app/Bilder/
|
|||||||
|
|
||||||
# Erste Schritte
|
# Erste Schritte
|
||||||
|
|
||||||
|
## Python
|
||||||
|
|
||||||
|
## Pip
|
||||||
|
|
||||||
|
## Config
|
||||||
|
|
||||||
|
## Starten
|
||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
config_file = "src/config.yml"
|
config_file = "config.yml"
|
||||||
|
|
||||||
|
|
||||||
def get_config():
|
def get_config():
|
||||||
with open(file=config_file, mode='r') as file:
|
with open(file=config_file, mode='r') as file:
|
||||||
print(yaml.safe_load(file))
|
|
||||||
return Config(yaml.safe_load(file))
|
return Config(yaml.safe_load(file))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
from meta_data_handler import get_meta_data
|
import sys
|
||||||
from file_handler import sort_pictures
|
sys.path.append("../")
|
||||||
from scan_folder import recursive_scan_folder
|
|
||||||
from config import get_config
|
from src.meta_data_handler import get_meta_data
|
||||||
|
from src.file_handler import sort_pictures
|
||||||
|
from src.scan_folder import recursive_scan_folder
|
||||||
|
from src.config import get_config
|
||||||
|
|
||||||
|
|
||||||
def start_process(logger):
|
def start_process(logger):
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ from unittest.mock import Mock
|
|||||||
from src.process import start_process
|
from src.process import start_process
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skip("")
|
||||||
class TestProcess(unittest.TestCase):
|
class TestProcess(unittest.TestCase):
|
||||||
def test_process(self):
|
def test_process(self):
|
||||||
start_process(logger=Mock())
|
start_process(logger=Mock())
|
||||||
|
|||||||
Reference in New Issue
Block a user