Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43d4c95

Browse files
committed
Remove future flag specifications from tests
1 parent 697f84c commit 43d4c95

File tree

4 files changed

+0
-27
lines changed

4 files changed

+0
-27
lines changed

plotly/tests/test_core/test_subplots/test_get_subplot.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from __future__ import absolute_import
2-
from _plotly_future_ import _future_flags
32

43
from unittest import TestCase
54
from plotly.graph_objs import Figure
@@ -9,13 +8,6 @@
98

109

1110
class TestGetSubplot(TestCase):
12-
def setUp(self):
13-
# Use v4_subplots mode
14-
_future_flags.add('v4_subplots')
15-
16-
def tearDown(self):
17-
_future_flags.remove('v4_subplots')
18-
1911
def test_get_subplot(self):
2012
# Make Figure with subplot types
2113
fig = subplots.make_subplots(

plotly/tests/test_core/test_subplots/test_make_subplots.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from __future__ import absolute_import
2-
from _plotly_future_ import _future_flags
32

43
from unittest import TestCase
54
from plotly.graph_objs import (Annotation, Annotations, Data, Figure, Font,
@@ -15,13 +14,6 @@ class TestMakeSubplots(TestCase):
1514
In version 4, change this to test plotly.subplots.make_subplots directly
1615
"""
1716

18-
def setUp(self):
19-
# Use v4_subplots mode
20-
_future_flags.add('v4_subplots')
21-
22-
def tearDown(self):
23-
_future_flags.remove('v4_subplots')
24-
2517
def test_non_integer_rows(self):
2618
with self.assertRaises(Exception):
2719
tls.make_subplots(rows=2.1)

plotly/tests/test_core/test_update_objects/test_update_subplots.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66
import plotly.graph_objs as go
77
from plotly.graph_objs import Figure
88
from plotly.subplots import make_subplots
9-
from _plotly_future_ import _future_flags
109

1110

1211
class TestSelectForEachUpdateSubplots(TestCase):
1312

1413
def setUp(self):
15-
_future_flags.add('v4_subplots')
16-
1714
fig = make_subplots(
1815
rows=3,
1916
cols=3,
@@ -47,9 +44,6 @@ def setUp(self):
4744
self.fig = fig
4845
self.fig_no_grid = go.Figure(self.fig.to_dict())
4946

50-
def tearDown(self):
51-
_future_flags.remove('v4_subplots')
52-
5347
def assert_select_subplots(
5448
self, subplot_type, subplots_name, expected_nums,
5549
selector=None, row=None, col=None, secondary_y=None,

plotly/tests/test_core/test_update_objects/test_update_traces.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55

66
import plotly.graph_objs as go
77
from plotly.subplots import make_subplots
8-
from _plotly_future_ import _future_flags
98

109

1110
class TestSelectForEachUpdateTraces(TestCase):
1211

1312
def setUp(self):
14-
_future_flags.add('v4_subplots')
1513
fig = make_subplots(
1614
rows=3,
1715
cols=2,
@@ -118,9 +116,6 @@ def setUp(self):
118116
self.fig = fig
119117
self.fig_no_grid = go.Figure(self.fig.to_dict())
120118

121-
def tearDown(self):
122-
_future_flags.remove('v4_subplots')
123-
124119
# select_traces and for_each_trace
125120
# --------------------------------
126121
def assert_select_traces(

0 commit comments

Comments
 (0)