小编ken*_*riu的帖子

重组文本中的鹈鹕外部图像

我想在使用Pelican创建的博客上放置外部图像

所以我尝试:

some text

.. image:: http://example.com/image.png
    :alt: Alt text
Run Code Online (Sandbox Code Playgroud)

运行“ pelican -s pelicanconf.py”后,出现错误:

ERROR: Better Fig. Error: image not found: /Users/kendriu/sources/pelican-blog/contenthttp:/example.com/image.png
ERROR: Could not process ./4_joe.rst
   | [Errno 2] No such file or directory: u'/Users/kendriu/sources/pelican-blog/contenthttp:/example.com/image.png'
Run Code Online (Sandbox Code Playgroud)

而且我的帖子中没有图片。

问题是:如何在我的博客中放置外部图像。

python restructuredtext image pelican

5
推荐指数
1
解决办法
779
查看次数

如何运行:来自命令行的挂起测试?

我有时会看到测试被评为 :pending

ExUnit.start
ExUnit.configure(exclude: :pending)

defmodule SublistTest do
  use ExUnit.Case, async: true

  test "empty equals empty" do
    assert Sublist.compare([], []) == :equal
  end

  @tag :pending
  test "empty is a sublist of anything" do
    assert Sublist.compare([], [nil]) == :sublist
  end
end
Run Code Online (Sandbox Code Playgroud)

当你从shell运行测试时,显然会从执行中排除

elixir sublist_test.exs
Run Code Online (Sandbox Code Playgroud)

有没有办法在:pending命令行运行测试时包含测试?

第二个问题:为什么人们将测试标记为:pending.

unit-testing elixir

3
推荐指数
1
解决办法
127
查看次数

标签 统计

elixir ×1

image ×1

pelican ×1

python ×1

restructuredtext ×1

unit-testing ×1