from djino.sync_meta import SyncMetaOptions, SyncScope


class TestSyncMetaOptions:
    def test_default_values(self):
        opts = SyncMetaOptions()
        assert opts.scope == SyncScope.USER
        assert opts.sync_filter is None
        assert opts.client_writable is True
        assert opts.write_check is None
        assert opts.owner_field is None

    def test_scope_enum_values(self):
        assert SyncScope.GLOBAL.value == "global"
        assert SyncScope.SHARED.value == "shared"
        assert SyncScope.USER.value == "user"
