Skip to content

Commit

Permalink
Remove old form references and fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Aug 18, 2023
1 parent 66c9d32 commit e14d1f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions assets/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ require.context("govuk-frontend/govuk/assets");
require.context(
"@ministryofjustice/frontend/moj/assets"
);
import govukFrontend from "govuk-frontend";
import {initAll} from "govuk-frontend";
import mojFrontend from "@ministryofjustice/frontend";

govukFrontend.initAll();
initAll();
mojFrontend.initAll();
6 changes: 1 addition & 5 deletions src/peoplefinder/forms/profile_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
from django.core.validators import ValidationError
from django.template import Context, Template

from peoplefinder.forms.profile import (
GovUkRadioSelect,
GroupedModelChoiceField,
ProfileForm,
)
from peoplefinder.forms.profile import GovUkRadioSelect, GroupedModelChoiceField
from peoplefinder.forms.role import RoleForm
from peoplefinder.models import Person, UkStaffLocation

Expand Down
2 changes: 1 addition & 1 deletion src/peoplefinder/test/views/test_profile_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from django.urls import reverse
from pytest_django.asserts import assertContains

from peoplefinder.forms.profile import ProfileForm
from peoplefinder.models import Person, Team
from peoplefinder.services.person import PersonService
from peoplefinder.test.factories import TeamFactory
Expand Down Expand Up @@ -244,6 +243,7 @@ def test_cannot_be_own_manager(state):


def test_profile_edit_view(state):
assert False
view_url = reverse(
"profile-edit",
kwargs={
Expand Down
6 changes: 1 addition & 5 deletions src/peoplefinder/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
from django.views.generic.detail import DetailView, SingleObjectMixin
from django.views.generic.edit import FormView, UpdateView

from peoplefinder.forms.profile import (
ProfileForm,
ProfileLeavingDitForm,
ProfileUpdateUserForm,
)
from peoplefinder.forms.profile import ProfileLeavingDitForm, ProfileUpdateUserForm
from peoplefinder.forms.profile_edit import (
PersonalProfileAdminForm,
PersonalProfileContactForm,
Expand Down

0 comments on commit e14d1f4

Please sign in to comment.