Permalink
Browse files

model/hss: update to new E-mail infrastructure

  • Loading branch information...
Lodifice committed Sep 5, 2018
1 parent 4ccca26 commit 53e0835802f6f7038589320595f8f31c06e38786
Showing with 4 additions and 4 deletions.
  1. +2 −2 sipa/model/hss/__init__.py
  2. +1 −1 sipa/model/hss/user.py
  3. +1 −1 tests/integration/test_hss_postgres.py
@@ -21,9 +21,9 @@ def init_context(app):
datasource = DataSource(
name='hss',
user_class=user.User,
mail_server="wh12.tu-dresden.de",
mail_server="imap.agdsn.de",
# to be included when it becomes a DataSource
webmailer_url="https://wh12.tu-dresden.de/roundcube/",
webmailer_url="https://mail.agdsn.de",
init_context=init_context,
)

@@ -239,7 +239,7 @@ def mac(self, new_mac):

@active_prop
def mail(self):
return "{}@wh12.tu-dresden.de".format(self._pg_account.account)
return "{}@agdsn.me".format(self._pg_account.account)

@active_prop
def address(self):
@@ -95,7 +95,7 @@ def test_address_passed(self):
def test_mail_correct(self):
acc = self.fixtures_pg[Account][0]
user = User.get(acc.account)
expected_mail = "{}@wh12.tu-dresden.de".format(acc.account)
expected_mail = "{}@agdsn.me".format(acc.account)
self.assertEqual(user.mail, expected_mail)

def test_uninitialized_max_credit_throws_warning(self):

0 comments on commit 53e0835

Please sign in to comment.