Skip to content

Commit 0af406b

Browse files
Removed paths specific to my machine from LookupValidationTests.cs - left over from debugging
1 parent 53ad4df commit 0af406b

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

tests/UnitTests/ScreeningValidationServiceTests/LookupValidation/LookupValidationTests.cs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,18 @@ private void SetupRules(string ruleType)
103103
// Try various paths for the rules files
104104
string[] possiblePaths = new[]
105105
{
106-
// Original paths with different nesting depths
107-
Path.Combine("../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
108-
Path.Combine("../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
109-
110-
// Try paths relative to project root
111-
Path.Combine("../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
112-
Path.Combine("../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
113-
Path.Combine("../../../../../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
114-
115-
// Try absolute path to handle any directory structure
116-
Path.Combine("/Users/sam/git/nhs/dtos-cohort-manager/application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
117-
118-
// Try with the ScreeningValidationService root directory
119-
Path.Combine("../../../../../application/CohortManager/src/Functions/ScreeningValidationService", filename),
120-
Path.Combine("../../../application/CohortManager/src/Functions/ScreeningValidationService", filename)
121-
};
106+
// Relative paths with different nesting depths
107+
Path.Combine("../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
108+
Path.Combine("../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
109+
Path.Combine("../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
110+
Path.Combine("../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
111+
Path.Combine("../../../../../../../../../application/CohortManager/src/Functions/ScreeningValidationService/LookupValidation", filename),
112+
113+
114+
// Try with the ScreeningValidationService root directory
115+
Path.Combine("../../../../../application/CohortManager/src/Functions/ScreeningValidationService", filename),
116+
Path.Combine("../../../application/CohortManager/src/Functions/ScreeningValidationService", filename)
117+
};
122118

123119
// Try to find the file in any of the possible locations
124120
string jsonContent = null;

0 commit comments

Comments
 (0)