Skip to content

Commit

Permalink
FIND-81:format update
Browse files Browse the repository at this point in the history
  • Loading branch information
TNA-Allan committed Dec 11, 2024
1 parent c464088 commit 2cc6193
Showing 1 changed file with 36 additions and 14 deletions.
50 changes: 36 additions & 14 deletions test/records/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,16 @@ def test_appraisal_information(self):
def test_copies_information(self):
self.record = Record(self.source)
# patch raw data
self.record._raw["@template"]["details"][
"copiesInformation"
] = "Microform copies are available on open access in Microfilm Reading Room (MRR) as FO 605. They must be ordered by this reference"
self.record._raw["@template"]["details"]["copiesInformation"] = (
"Microform copies are available on open access in Microfilm "
"Reading Room (MRR) as FO 605. They must be ordered by this reference"
)
self.assertEqual(
self.record.copies_information,
"Microform copies are available on open access in Microfilm Reading Room (MRR) as FO 605. They must be ordered by this reference",
(
"Microform copies are available on open access in Microfilm "
"Reading Room (MRR) as FO 605. They must be ordered by this reference"
),
)

def test_custodial_history(self):
Expand Down Expand Up @@ -510,12 +514,20 @@ def test_restrictions_on_use(self):
def test_administrative_background(self):
self.record = Record(self.source)
# patch raw data
self.record._raw["@template"]["details"][
"administrativeBackground"
] = "The Industrial Relations Department was set up as soon as the British Transport Commission began functioning and continued in existence until the end of the British Railway Board. In 1983 it was renamed Employee Relations Department."
self.record._raw["@template"]["details"]["administrativeBackground"] = (
"The Industrial Relations Department was set up as soon as the "
"British Transport Commission began functioning and continued in "
"existence until the end of the British Railway Board. In 1983 it "
"was renamed Employee Relations Department."
)
self.assertEqual(
self.record.administrative_background,
"The Industrial Relations Department was set up as soon as the British Transport Commission began functioning and continued in existence until the end of the British Railway Board. In 1983 it was renamed Employee Relations Department.",
(
"The Industrial Relations Department was set up as soon as the "
"British Transport Commission began functioning and continued in "
"existence until the end of the British Railway Board. In 1983 it "
"was renamed Employee Relations Department."
),
)

def test_arrangement(self):
Expand Down Expand Up @@ -572,18 +584,28 @@ def test_description(self):
self.record = Record(self.source)
# patch raw data
self.record._raw["@template"]["details"]["description"] = (
"""C16248: Online descriptions of individual records can be viewed on Discovery, see <a class=\"extref\" href=\"f41eb-1496-446c-8bf8-21dc681223da\">RM 2</a>."""
""""C16248: Also see the Royal Botanic Gardens, Kew <a class=\"extref\" href=\"https://www2.calmview.co.uk/kew/calmview/Record.aspx?src=CalmView.Catalog&amp;id=MN&amp;pos=1\">online catalogue</a>"""
"""C16248: Online descriptions of individual records can be viewed """
"""on Discovery, see <a class=\"extref\" """
"""href=\"f41eb-1496-446c-8bf8-21dc681223da\">RM 2</a>."""
""""C16248: Also see the Royal Botanic Gardens, Kew """
"""<a class=\"extref\" href=\"https://www2.calmview.co.uk/kew/calmview"""
"""/Record.aspx?src=CalmView.Catalog&amp;id=MN&amp;pos=1\">online catalogue</a>"""
"""C244: <span class=\"emph-italic\">Censuses of Population</span>"""
"""C244: <span class=\"list\"><span class=\"item\">Correspondence and papers</span></span>"""
"""C244: <span class=\"list\"><span class=\"item\">Correspondence and """
"""papers</span></span>"""
)
self.assertEqual(
self.record.description,
(
"""C16248: Online descriptions of individual records can be viewed on Discovery, see <a class=\"extref\" href=\"f41eb-1496-446c-8bf8-21dc681223da\">RM 2</a>."""
""""C16248: Also see the Royal Botanic Gardens, Kew <a class=\"extref\" href=\"https://www2.calmview.co.uk/kew/calmview/Record.aspx?src=CalmView.Catalog&amp;id=MN&amp;pos=1\">online catalogue</a>"""
"""C16248: Online descriptions of individual records can be viewed """
"""on Discovery, see <a class=\"extref\" """
"""href=\"f41eb-1496-446c-8bf8-21dc681223da\">RM 2</a>."""
""""C16248: Also see the Royal Botanic Gardens, Kew """
"""<a class=\"extref\" href=\"https://www2.calmview.co.uk/kew/calmview"""
"""/Record.aspx?src=CalmView.Catalog&amp;id=MN&amp;pos=1\">online catalogue</a>"""
"""C244: <span class=\"emph-italic\">Censuses of Population</span>"""
"""C244: <span class=\"list\"><span class=\"item\">Correspondence and papers</span></span>"""
"""C244: <span class=\"list\"><span class=\"item\">Correspondence and """
"""papers</span></span>"""
),
)

Expand Down

0 comments on commit 2cc6193

Please sign in to comment.