fix pixiv tests, install ffmpeg
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
FROM r888888888/danbooru-base
|
FROM r888888888/danbooru-base
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
RUN apt-get install -y ffmpeg
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN chown -R danbooru:danbooru .
|
RUN chown -R danbooru:danbooru .
|
||||||
USER danbooru
|
USER danbooru
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
require 'resolv-replace'
|
||||||
|
|
||||||
module Sources
|
module Sources
|
||||||
class PixivTest < ActiveSupport::TestCase
|
class PixivTest < ActiveSupport::TestCase
|
||||||
def get_source(source)
|
def get_source(source)
|
||||||
@site = Sources::Site.new(source)
|
@site = Sources::Site.new(source)
|
||||||
@site.get
|
@site.get
|
||||||
|
@site.strategy.agent.shutdown
|
||||||
@site
|
@site
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user