CLI: drop two table formatter tests
The only way to make them reliable in their current form would be converting to keyword lists, which are covered anyway.
This commit is contained in:
parent
ddf7926941
commit
8625301e8d
|
|
@ -9,20 +9,6 @@ defmodule TableFormatterTest do
|
|||
|
||||
@formatter RabbitMQ.CLI.Formatters.Table
|
||||
|
||||
test "format_output tab-separates map values" do
|
||||
assert @formatter.format_output(%{a: :apple, b: :beer}, %{}) == ["a\tb", "apple\tbeer"]
|
||||
|
||||
assert @formatter.format_output(%{a: :apple, b: :beer, c: 1}, %{}) == [
|
||||
"a\tb\tc",
|
||||
"apple\tbeer\t1"
|
||||
]
|
||||
|
||||
assert @formatter.format_output(%{a: "apple", b: 'beer', c: 1}, %{}) == [
|
||||
"a\tb\tc",
|
||||
"apple\t\"beer\"\t1"
|
||||
]
|
||||
end
|
||||
|
||||
test "format_output tab-separates keyword values" do
|
||||
assert @formatter.format_output([a: :apple, b: :beer], %{}) == ["a\tb", "apple\tbeer"]
|
||||
|
||||
|
|
@ -37,15 +23,6 @@ defmodule TableFormatterTest do
|
|||
]
|
||||
end
|
||||
|
||||
test "format_stream tab-separates map values" do
|
||||
assert @formatter.format_stream(
|
||||
[%{a: :apple, b: :beer, c: 1}, %{a: "aadvark", b: 'bee', c: 2}],
|
||||
%{}
|
||||
)
|
||||
|> Enum.to_list() ==
|
||||
["c\ta\tb", "1\tapple\tbeer", "2\taadvark\t\"bee\""]
|
||||
end
|
||||
|
||||
test "format_stream tab-separates keyword values" do
|
||||
assert @formatter.format_stream(
|
||||
[[a: :apple, b: :beer, c: 1], [a: "aadvark", b: 'bee', c: 2]],
|
||||
|
|
|
|||
Loading…
Reference in New Issue