예제 #1
0
 def test_last_supported_date(self, platform, version, last_supported_date):
     self.set_app_version_config()
     self.assertEqual(
         last_supported_date,
         AppVersionConfig.last_supported_date(platform, version))
예제 #2
0
 def test_no_configs_available(self, platform, version):
     self.assertIsNone(AppVersionConfig.latest_version(platform))
     self.assertIsNone(
         AppVersionConfig.last_supported_date(platform, version))
예제 #3
0
파일: middleware.py 프로젝트: saadow123/1
 def _get_last_supported_date(self, platform_name, platform_version):
     """ Get expiry date of app version for a platform. """
     return AppVersionConfig.last_supported_date(
         platform_name, platform_version) or self.NO_LAST_SUPPORTED_DATE
예제 #4
0
 def _get_last_supported_date(self, platform_name, platform_version):
     """ Get expiry date of app version for a platform. """
     return AppVersionConfig.last_supported_date(platform_name, platform_version) or self.NO_LAST_SUPPORTED_DATE
예제 #5
0
 def test_last_supported_date(self, platform, version, last_supported_date):
     self.set_app_version_config()
     self.assertEqual(last_supported_date, AppVersionConfig.last_supported_date(platform, version))
예제 #6
0
 def test_no_configs_available(self, platform, version):
     self.assertIsNone(AppVersionConfig.latest_version(platform))
     self.assertIsNone(AppVersionConfig.last_supported_date(platform, version))