rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Test factories and seeding #43

Open eatyourpeas opened 1 month ago

eatyourpeas commented 1 month ago

Factories cannot be fully implemented until inclusion of the Site and Organisation models. Once these are in place, factories need completing to:

  1. seed NPDAUsers
  2. seed Patients and Visits that depend on them
eatyourpeas commented 1 month ago

The Site model is now implemented so we are now ready for tests: @anchit-chandran interested?

The first important tests are for:

  1. user creation - who can do this, who cannot. Are users created in the correct PDU
  2. user listview - who can see this, is it appropriately scoped to all users in a given PDU
  3. user delete - who can do this
  4. Password reset
anchit-chandran commented 3 weeks ago

Will do these

anchit-chandran commented 2 weeks ago

Do we have a md table similar to E12 docs re appropriate perms?

mbarton commented 2 weeks ago

Do we have a md table similar to E12 docs re appropriate perms?

@anchit-chandran I believe it's here: https://github.com/rcpch/national-paediatric-diabetes-audit/blob/development/documentation/docs/developer/users.md#permissions

anchit-chandran commented 6 days ago

on hold whilst still building / finalising views + user flow