Skip to content

Commit d676207

Browse files
committed
fix some tests
1 parent 3fa1f6f commit d676207

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

test/test_barchart_legend_reference.tex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
\begin{axis}[
44
legend cell align={left},
5-
legend style={
6-
fill opacity=0.8,
7-
draw opacity=1,
8-
text opacity=1,
9-
at={(0.5,0.91)},
10-
anchor=north,
11-
draw=white!80!black
12-
},
5+
legend style={fill opacity=0.8, draw opacity=1, text opacity=1, draw=white!80!black},
136
tick align=outside,
147
tick pos=left,
158
x grid style={white!69.019608!black},

test/test_hatch_reference.tex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,7 @@
4545

4646
\nextgroupplot[
4747
legend cell align={left},
48-
legend style={
49-
fill opacity=0.8,
50-
draw opacity=1,
51-
text opacity=1,
52-
at={(0.91,0.5)},
53-
anchor=east,
54-
draw=white!80!black
55-
},
48+
legend style={fill opacity=0.8, draw opacity=1, text opacity=1, draw=white!80!black},
5649
tick align=outside,
5750
tick pos=left,
5851
x grid style={white!69.019608!black},

test/test_legend_best_location.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
3+
import pytest
4+
35
from helpers import assert_equality
46

57

@@ -58,9 +60,10 @@ def plot():
5860
return fig
5961

6062

63+
# TODO find a way to make this robust
64+
@pytest.mark.skip(reason="'Best' location depends on window size.")
6165
def test():
6266
assert_equality(plot, "test_legend_best_location_reference.tex")
63-
return
6467

6568

6669
if __name__ == "__main__":

0 commit comments

Comments
 (0)