Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More regression tests #272

Merged
merged 14 commits into from
Jan 29, 2024
Merged

More regression tests #272

merged 14 commits into from
Jan 29, 2024

Conversation

remvee
Copy link
Collaborator

@remvee remvee commented Jan 10, 2024

No description provided.

@remvee remvee marked this pull request as ready for review January 15, 2024 08:29
@remvee remvee requested a review from joodie January 15, 2024 08:29
Copy link
Contributor

@joodie joodie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests run correctly at my machine. Some smaller changes requested

@@ -45,12 +45,14 @@
(def aangeboden-opleiding-namen
#{:aangebodenHOOpleidingsonderdeel :aangebodenHOOpleiding :aangebodenParticuliereOpleiding})

;; NOTE: aangeboden opleidingen are reference by OOAPI UID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"referenced"

:retryable? false})))

(let [soap-action (str "opvragen_" type)
rio-sexp (condp = type
;; Command line only.
opleidingseenheden-van-organisatie
[[:duo:onderwijsbestuurcode id]
[[:duo:onderwijsbestuurcode opleidingscode] ;; FIXME: this is not an opleidingscode!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waarom is deze verandering er dan?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omdat het stuk is zonder deze aanpassing. De FIXME heb ik toegevoegd omdat het hier natuurlijk om een bestuurcode gaat en er dus heel slordig gewoon een property misbruikt wordt.


(def ^:private last-boxed-print (atom nil))

(defmacro print-boxed
"Print pretty box around output of evaluating `form`."
[title & form]
`(let [s# (with-out-str (do ~@form))]
`(let [r# (transient [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless binding is overwritten at line 40

(concat result (f file))
(conj result file)))
result)))]
(f (entities-dir))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Als je f als named functie extract, kan je die loop ook omzetten in mapcat

;; scenario [8b]: Test /job/link to reset the course to the old 'eigen sleutel'.
:TODO)
(testing "scenario [7a]: Test /job/upsert with the edspec for a course. You can expect 'done'."
(let [job (post-job :upsert :education-specifications "parent-course")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik vind "parent-course" wel een verwarrende naam voor een education specification. Vooral als de course dan weer gewoon "some" heet...

@remvee remvee force-pushed the more-regression-tests branch 2 times, most recently from 59561dd to 9a5fb1d Compare January 29, 2024 10:00
@remvee remvee force-pushed the more-regression-tests branch from 9a5fb1d to e7856eb Compare January 29, 2024 10:04
@remvee remvee force-pushed the more-regression-tests branch from e7856eb to b4ed154 Compare January 29, 2024 10:15
@remvee remvee merged commit cffdc2a into main Jan 29, 2024
6 of 7 checks passed
@remvee remvee deleted the more-regression-tests branch January 29, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants