View Source Zoonk.Fixtures.Organizations (Zoonk v0.1.0-alpha)

This module defines test helpers for creating entities via the Zoonk.Organizations context.

Link to this section Summary

Functions

Generate a school.

Add users to a school

Generate a unique school custom_domain.

Generate a unique school username.

Get a school with valid attributes.

Link to this section Functions

Link to this function

school_fixture(attrs \\ %{})

View Source
@spec school_fixture(map()) :: Zoonk.Organizations.School.t()

Generate a school.

Link to this function

school_user_fixture(opts \\ [])

View Source
@spec school_user_fixture(Keyword.t()) :: Zoonk.Organizations.SchoolUser.t()

Add users to a school

Link to this function

unique_school_custom_domain()

View Source
@spec unique_school_custom_domain() :: String.t()

Generate a unique school custom_domain.

Link to this function

unique_school_username()

View Source
@spec unique_school_username() :: String.t()

Generate a unique school username.

Link to this function

valid_school_attributes(attrs \\ %{})

View Source
@spec valid_school_attributes(map()) :: map()

Get a school with valid attributes.