Skip to content

Commit

Permalink
Fix template Stash yml configs for tests confusing Stash which yml fi…
Browse files Browse the repository at this point in the history
…le to load when using the plugin
  • Loading branch information
MinasukiHikimuna committed Aug 3, 2024
1 parent bbe35f8 commit 924c5c1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/CompleteTheStash/CompleteTheStash.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CompleteTheStash
description: Finds missing scenes for selected performers and creates missing scene metadata to another missing Stash instance. You can use either StashDB or TPDB or both as a source for missing scenes.
version: 0.4.0
version: 0.4.1
url: https://github.com/MinasukiHikimuna/MidnightRider-Stash/
exec:
- python
Expand Down
12 changes: 6 additions & 6 deletions plugins/CompleteTheStash/test_stash_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def local_stash_instance_stashdb():
local_working_dir = os.path.join(test_dir, ".local-stash")
plugin_dir = os.path.join(local_working_dir, "plugins", "CompleteTheStash")
executable_path = os.getenv("STASH_BIN")
local_config_path = os.path.join(template_dir, "local-config.yml")
local_config_path = os.path.join(template_dir, "local-config.txt")

if os.path.exists(local_working_dir):
shutil.rmtree(local_working_dir)
Expand All @@ -126,7 +126,7 @@ def local_stash_instance_stashdb():
stash_box["apikey"] = os.getenv("STASHDB_API_KEY")
stashdb_found = True
break
assert stashdb_found, "StashDB endpoint not found in local-config.yml"
assert stashdb_found, "StashDB endpoint not found in local-config.txt"

local_config["plugins"]["settings"]["CompleteTheStash"][
"performerTags"
Expand Down Expand Up @@ -170,7 +170,7 @@ def local_stash_instance_tpdb():
local_working_dir = os.path.join(test_dir, ".local-stash")
plugin_dir = os.path.join(local_working_dir, "plugins", "CompleteTheStash")
executable_path = os.getenv("STASH_BIN")
local_config_path = os.path.join(template_dir, "local-config.yml")
local_config_path = os.path.join(template_dir, "local-config.txt")

if os.path.exists(local_working_dir):
shutil.rmtree(local_working_dir)
Expand All @@ -186,7 +186,7 @@ def local_stash_instance_tpdb():
stash_box["apikey"] = os.getenv("TPDB_API_KEY")
tpdb_found = True
break
assert tpdb_found, "TPDB endpoint not found in local-config.yml"
assert tpdb_found, "TPDB endpoint not found in local-config.txt"

local_config["plugins"]["settings"]["CompleteTheStash"][
"performerTags"
Expand Down Expand Up @@ -229,7 +229,7 @@ def missing_stash_instance_stashdb():
template_dir = os.path.join(test_dir, ".template-stash")
missing_working_dir = os.path.join(test_dir, ".missing-stashdb-stash")
executable_path = os.getenv("STASH_BIN")
missing_config_path = os.path.join(template_dir, "missing-stashdb-config.yml")
missing_config_path = os.path.join(template_dir, "missing-stashdb-config.txt")

if os.path.exists(missing_working_dir):
shutil.rmtree(missing_working_dir)
Expand Down Expand Up @@ -263,7 +263,7 @@ def missing_stash_instance_tpdb():
template_dir = os.path.join(test_dir, ".template-stash")
missing_working_dir = os.path.join(test_dir, ".missing-tpdb-stash")
executable_path = os.getenv("STASH_BIN")
missing_config_path = os.path.join(template_dir, "missing-tpdb-config.yml")
missing_config_path = os.path.join(template_dir, "missing-tpdb-config.txt")

if os.path.exists(missing_working_dir):
shutil.rmtree(missing_working_dir)
Expand Down

0 comments on commit 924c5c1

Please sign in to comment.