Esempio n. 1
0
 def test_refresh(self, mock_refresh):
     fake_account = factories.BoxAccountFactory(expires_at=datetime.datetime.utcnow())
     main(delta=relativedelta(days=7), dry_run=False)
     mock_refresh.assert_called_once()
Esempio n. 2
0
 def test_refresh(self, mock_refresh):
     factories.BoxOAuthSettingsFactory(expires_at=datetime.datetime.utcnow())
     main(delta=relativedelta(days=7), dry_run=False)
     mock_refresh.assert_called_once_with(force=True)
Esempio n. 3
0
 def test_refresh(self, mock_refresh):
     fake_account = factories.BoxAccountFactory(
         expires_at=datetime.datetime.utcnow())
     main(delta=relativedelta(days=7), dry_run=False)
     mock_refresh.assert_called_once()