@@ -44,7 +44,7 @@ def test_under_limit_no_price_bump(self):
4444
4545 def test_over_limit_price_bump_before_event (self , monkeypatch ):
4646 monkeypatch .setattr (c , 'EPOCH' , localized_now () + timedelta (days = 1 ))
47- session = Session (). session
47+ session = Session ()
4848 assert c .BADGES_SOLD == 0
4949
5050 with request_cached_context ():
@@ -57,7 +57,7 @@ def test_over_limit_price_bump_before_event(self, monkeypatch):
5757 def test_over_limit_price_bump_during_event (self , monkeypatch ):
5858 monkeypatch .setattr (c , 'EPOCH' , localized_now () - timedelta (days = 1 ))
5959
60- session = Session (). session
60+ session = Session ()
6161 assert c .BADGES_SOLD == 0
6262
6363 with request_cached_context ():
@@ -69,7 +69,7 @@ def test_over_limit_price_bump_during_event(self, monkeypatch):
6969
7070 def test_refunded_badge_price_bump_before_event (self , monkeypatch ):
7171 monkeypatch .setattr (c , 'EPOCH' , localized_now () + timedelta (days = 1 ))
72- session = Session (). session
72+ session = Session ()
7373 assert c .BADGES_SOLD == 0
7474
7575 with request_cached_context ():
@@ -81,7 +81,7 @@ def test_refunded_badge_price_bump_before_event(self, monkeypatch):
8181
8282 def test_refunded_badge_price_bump_during_event (self , monkeypatch ):
8383 monkeypatch .setattr (c , 'EPOCH' , localized_now () - timedelta (days = 1 ))
84- session = Session (). session
84+ session = Session ()
8585 assert c .BADGES_SOLD == 0
8686
8787 with request_cached_context ():
@@ -92,7 +92,7 @@ def test_refunded_badge_price_bump_during_event(self, monkeypatch):
9292 assert 40 == c .get_attendee_price ()
9393
9494 def test_invalid_badge_no_price_bump (self ):
95- session = Session (). session
95+ session = Session ()
9696 assert c .BADGES_SOLD == 0
9797
9898 with request_cached_context ():
@@ -103,7 +103,7 @@ def test_invalid_badge_no_price_bump(self):
103103 assert 40 == c .get_attendee_price ()
104104
105105 def test_free_badge_no_price_bump (self ):
106- session = Session (). session
106+ session = Session ()
107107 assert c .BADGES_SOLD == 0
108108
109109 with request_cached_context ():
@@ -249,31 +249,31 @@ def test_dealer_reg_soft_closed_after_deadline(self, monkeypatch):
249249 assert c .DEALER_REG_SOFT_CLOSED
250250
251251 def test_dealer_app (self ):
252- session = Session (). session
252+ session = Session ()
253253 with request_cached_context ():
254254 session .add (Group (tables = 1 , cost = 10 , status = c .UNAPPROVED ))
255255 session .commit ()
256256
257257 assert c .DEALER_APPS == 1
258258
259259 def test_waitlisted_dealer_not_app (self ):
260- session = Session (). session
260+ session = Session ()
261261 with request_cached_context ():
262262 session .add (Group (tables = 1 , cost = 10 , status = c .WAITLISTED ))
263263 session .commit ()
264264
265265 assert c .DEALER_APPS == 0
266266
267267 def test_free_dealer_no_app (self ):
268- session = Session (). session
268+ session = Session ()
269269 with request_cached_context ():
270270 session .add (Group (tables = 1 , cost = 0 , auto_recalc = False , status = c .UNAPPROVED ))
271271 session .commit ()
272272
273273 assert c .DEALER_APPS == 0
274274
275275 def test_not_a_dealer_no_app (self ):
276- session = Session (). session
276+ session = Session ()
277277 with request_cached_context ():
278278 session .add (Group (tables = 0 , cost = 10 , status = c .UNAPPROVED ))
279279 session .commit ()
0 commit comments