Skip to content

Commit

Permalink
🚚 chore(api): move student certification to src
Browse files Browse the repository at this point in the history
  • Loading branch information
yaf authored and alexandrecoin committed Dec 30, 2024
1 parent 6c6d9f7 commit c38f02e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as organizationLearnerRepository from '../../../../../../lib/infrastructure/repositories/organization-learner-repository.js';
import { ScheduleComputeOrganizationLearnersCertificabilityJobController } from '../../../../../../src/prescription/learner-management/application/jobs/schedule-compute-organization-learners-certificability-job-controller.js';
import { computeCertificabilityJobRepository } from '../../../../../../src/prescription/learner-management/infrastructure/repositories/jobs/compute-certificability-job-repository.js';
import { ORGANIZATION_FEATURE } from '../../../../../../src/shared/domain/constants.js';
import * as organizationLearnerRepository from '../../../../../../src/shared/infrastructure/repositories/organization-learner-repository.js';
import { databaseBuilder, expect, sinon } from '../../../../../test-helper.js';

describe('Integration | Infrastructure | Jobs | scheduleComputeOrganizationLearnersCertificabilityJobController', function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import _ from 'lodash';

import * as organizationLearnerRepository from '../../../../../../lib/infrastructure/repositories/organization-learner-repository.js';
import { OrganizationLearnerCertificabilityNotUpdatedError } from '../../../../../../src/prescription/learner-management/domain/errors.js';
import { CommonOrganizationLearner } from '../../../../../../src/prescription/learner-management/domain/models/CommonOrganizationLearner.js';
import { OrganizationLearnerForAdmin } from '../../../../../../src/prescription/learner-management/domain/read-models/OrganizationLearnerForAdmin.js';
Expand Down Expand Up @@ -29,6 +28,7 @@ import {
UserCouldNotBeReconciledError,
} from '../../../../../../src/shared/domain/errors.js';
import { OrganizationLearner } from '../../../../../../src/shared/domain/models/index.js';
import * as organizationLearnerRepository from '../../../../../../src/shared/infrastructure/repositories/organization-learner-repository.js';
import { catchErr, databaseBuilder, domainBuilder, expect, knex, sinon } from '../../../../../test-helper.js';

describe('Integration | Repository | Organization Learner Management | Organization Learner', function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as libOrganizationLearnerRepository from '../../../../../../lib/infrastructure/repositories/organization-learner-repository.js';
import { Organization } from '../../../../../../src/organizational-entities/domain/models/Organization.js';
import { tagRepository } from '../../../../../../src/organizational-entities/infrastructure/repositories/tag.repository.js';
import * as campaignParticipationOverviewRepository from '../../../../../../src/prescription/campaign-participation/infrastructure/repositories/campaign-participation-overview-repository.js';
import { findOrganizationLearnersWithParticipations } from '../../../../../../src/prescription/organization-learner/domain/usecases/find-organization-learners-with-participations.js';
import { OrganizationLearner } from '../../../../../../src/shared/domain/models/OrganizationLearner.js';
import { CampaignParticipationOverview } from '../../../../../../src/shared/domain/read-models/CampaignParticipationOverview.js';
import * as organizationLearnerRepository from '../../../../../../src/shared/infrastructure/repositories/organization-learner-repository.js';
import * as organizationRepository from '../../../../../../src/shared/infrastructure/repositories/organization-repository.js';
import { databaseBuilder, expect } from '../../../../../test-helper.js';

Expand Down Expand Up @@ -40,7 +40,7 @@ describe('Integration | UseCases | find-organization-learners-with-participation
userIds: [user1.id, user2.id],
campaignParticipationOverviewRepository,
organizationRepository,
libOrganizationLearnerRepository,
libOrganizationLearnerRepository: organizationLearnerRepository,
tagRepository,
});

Expand Down Expand Up @@ -87,7 +87,7 @@ describe('Integration | UseCases | find-organization-learners-with-participation
userIds: [organizationLearner.userId],
campaignParticipationOverviewRepository,
organizationRepository,
libOrganizationLearnerRepository,
libOrganizationLearnerRepository: organizationLearnerRepository,
tagRepository,
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as organizationLearnerRepository from '../../../../../../lib/infrastructure/repositories/organization-learner-repository.js';
import { getDataOrganizationsPlacesStatistics } from '../../../../../../src/prescription/organization-place/domain/usecases/get-data-organizations-places-statistics.js';
import * as organizationPlacesLotRepository from '../../../../../../src/prescription/organization-place/infrastructure/repositories/organization-places-lot-repository.js';
import { ORGANIZATION_FEATURE } from '../../../../../../src/shared/domain/constants.js';
import * as organizationLearnerRepository from '../../../../../../src/shared/infrastructure/repositories/organization-learner-repository.js';
import * as organizationRepository from '../../../../../../src/shared/infrastructure/repositories/organization-repository.js';
import { databaseBuilder, expect, sinon } from '../../../../../test-helper.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import lodash from 'lodash';
const { pick } = lodash;

import * as organizationLearnerRepository from '../../../../../lib/infrastructure/repositories/organization-learner-repository.js';
import { NON_OIDC_IDENTITY_PROVIDERS } from '../../../../../src/identity-access-management/domain/constants/identity-providers.js';
import * as authenticationMethodRepository from '../../../../../src/identity-access-management/infrastructure/repositories/authentication-method.repository.js';
import * as userRepository from '../../../../../src/identity-access-management/infrastructure/repositories/user.repository.js';
import { userToCreateRepository } from '../../../../../src/identity-access-management/infrastructure/repositories/user-to-create.repository.js';
import { getLearnerInfo } from '../../../../../src/prescription/learner-management/infrastructure/repositories/organization-learner-repository.js';
import { OrganizationLearnerNotFound } from '../../../../../src/shared/domain/errors.js';
import * as userService from '../../../../../src/shared/domain/services/user-service.js';
import * as organizationLearnerRepository from '../../../../../src/shared/infrastructure/repositories/organization-learner-repository.js';
import { catchErr, databaseBuilder, domainBuilder, expect, knex } from '../../../../test-helper.js';

describe('Integration | Domain | Services | user-service', function () {
Expand Down

0 comments on commit c38f02e

Please sign in to comment.