tests: fix upload tests.

This commit is contained in:
evazion
2022-09-03 23:43:17 -05:00
parent 1968c9c69d
commit 3d5b201e0d

View File

@@ -1,6 +1,6 @@
module AutotaggerHelper
def mock_autotagger_evaluate(tags, http: Danbooru::Http.any_instance)
tags.keys.each { |name| create(:tag, name: name) }
tags.keys.each { |name| create(:tag, name: name.to_s) }
Danbooru.config.stubs(:autotagger_url).returns("http://localhost:5000")
body = [{ filename: "test.jpg", tags: tags }]