@@ -138,7 +138,6 @@ def test_signup(world, client):
138138 response = client .post (reverse ("account-signup" ), post )
139139 assert response .status_code == 200
140140 post ["user_email" ] = "horst.porst@example.com"
141- post ["address" ] = "MyOwnPrivateStree 5\n 31415 Pi-Ville"
142141
143142 response = client .post (reverse ("account-signup" ), post )
144143
@@ -149,7 +148,6 @@ def test_signup(world, client):
149148 user = User .objects .get (email = post ["user_email" ])
150149 assert user .first_name == post ["first_name" ]
151150 assert user .last_name == post ["last_name" ]
152- assert user .address == post ["address" ]
153151 assert mail .outbox [0 ].to [0 ] == post ["user_email" ]
154152
155153 # sign up with email that is not confirmed
@@ -179,7 +177,6 @@ def test_overlong_name_signup(world, client):
179177 "last_name" : "Porst" * 6 ,
180178 "terms" : "on" ,
181179 "user_email" : "horst.porst@example.com" ,
182- "address" : "MyOwnPrivateStree 5\n 31415 Pi-Ville" ,
183180 "time" : (datetime .utcnow () - timedelta (seconds = 30 )).timestamp (),
184181 }
185182 client .logout ()
@@ -198,7 +195,6 @@ def test_signup_too_fast(world, client):
198195 "last_name" : "Porst" ,
199196 "terms" : "on" ,
200197 "user_email" : "horst.porst@example.com" ,
201- "address" : "MyOwnPrivateStree 5\n 31415 Pi-Ville" ,
202198 # Signup in less than 5 seconds
203199 "time" : (datetime .utcnow () - timedelta (seconds = 3 )).timestamp (),
204200 }
@@ -215,7 +211,6 @@ def test_signup_same_name(world, client):
215211 "last_name" : "Porst" ,
216212 "terms" : "on" ,
217213 "user_email" : "horst.porst@example.com" ,
218- "address" : "MyOwnPrivateStree 5\n 31415 Pi-Ville" ,
219214 "time" : (datetime .utcnow () - timedelta (seconds = 30 )).timestamp (),
220215 }
221216 response = client .post (reverse ("account-signup" ), post )
@@ -233,7 +228,6 @@ def test_confirmation_process(world, client):
233228 first_name = "Stefan" ,
234229 last_name = "Wehrmeyer" ,
235230 user_email = "sw@example.com" ,
236- address = "SomeRandomAddress\n 11234 Bern" ,
237231 private = True ,
238232 )
239233 AccountService (user ).send_confirmation_mail ()
@@ -307,7 +301,6 @@ def test_next_link_signup(world, client):
307301 "last_name" : "Porst" ,
308302 "terms" : "on" ,
309303 "user_email" : "horst.porst@example.com" ,
310- "address" : "MyOwnPrivateStree 5\n 31415 Pi-Ville" ,
311304 "next" : url ,
312305 "time" : (datetime .utcnow () - timedelta (seconds = 30 )).timestamp (),
313306 }
@@ -466,14 +459,10 @@ def test_change_user(world, client):
466459 assert ok
467460 response = client .post (reverse ("account-change_user" ), data )
468461 assert response .status_code == 302
469- data ["address" ] = ""
470462 response = client .post (reverse ("account-change_user" ), data )
471463 assert response .status_code == 302
472- data ["address" ] = "Some Value"
473464 response = client .post (reverse ("account-change_user" ), data )
474465 assert response .status_code == 302
475- user = User .objects .get (username = "sw" )
476- assert user .address == data ["address" ]
477466
478467
479468@pytest .mark .django_db
@@ -582,7 +571,6 @@ def test_change_email(world, client):
582571 response = client .post (
583572 reverse ("account-change_user" ),
584573 {
585- "address" : "Test" ,
586574 "email" : "not-email" ,
587575 },
588576 )
@@ -596,22 +584,20 @@ def test_change_email(world, client):
596584 response = client .post (
597585 reverse ("account-change_user" ),
598586 {
599- "address" : "Test" ,
600587 "email" : "not-email" ,
601588 },
602589 )
603590 assert response .status_code == 400
604591 assert len (mail .outbox ) == 0
605592
606593 response = client .post (
607- reverse ("account-change_user" ), {"address" : "Test" , " email" : user .email }
594+ reverse ("account-change_user" ), {"email" : user .email }
608595 )
609596 assert response .status_code == 302
610597 assert len (mail .outbox ) == 0
611598 response = client .post (
612599 reverse ("account-change_user" ),
613600 {
614- "address" : "Test" ,
615601 "email" : new_email ,
616602 },
617603 )
@@ -697,7 +683,6 @@ def test_account_delete(world, client):
697683 assert user .last_name == ""
698684 assert user .email is None
699685 assert user .username == "u%s" % user .pk
700- assert user .address == ""
701686 assert user .organization_name == ""
702687 assert user .organization_url == ""
703688 assert user .private
0 commit comments