AkurAI Build
Menu

cosmic-mobile

public

Latest change b1dc45ecc84e34d8eec3f7cbe0f852a14cb22218 - Expose App Store unavailable state without fake installs by AkurAI Build

from pathlib import Path
import unittest

class StorePage(unittest.TestCase):
    def test_store_is_reachable_and_honest_about_missing_registry(self):
        source = (Path(__file__).resolve().parents[1] / 'src/main.rs').read_text()
        for marker in ['9 => self.page = Page::Store', 'Page::Store => "App Store"', 'Registry not connected', 'No packages installed or removed', '"app store"']:
            self.assertTrue(marker in source, marker)

if __name__ == '__main__':
    unittest.main()