<commit_before>@lr_retrieves_pdf
Feature: Land Registry Retrieves Deed PDF
  In order to retrieve a PDF of a digital mortgage deed
  The deed store must be capable of being searched via deed ID
  so that another service can use the PDF deed

Acceptance Criteria:
  (US153a) A search of the deed store can be made using a single deed ID
  (US153a) When a single deed is found the service must return a PDF of the deed
  (US153a) The service must state when no deed with that deed ID exists

@us153a
Scenario: Retrieve PDF for Valid Deed ID
  Given I have valid deed data with <1> borrowers
  And I create the deed via the Deed API
  And the deed id is returned by the Deed API
  When I retrieve a pdf using the deed id
  Then the PDF is returned

@us153a
Scenario: Retrieve PDF for Invalid Deed ID
  Given I have valid deed data with <1> borrowers
  And I create the deed via the Deed API
  And the deed id is returned by the Deed API
  When I retrieve a pdf using an incorrect deed id
  Then a status code of "404" is returned<commit_msg>Refactored using new generic data setup<commit_after>@lr_retrieves_pdf
Feature: Land Registry Retrieves Deed PDF
  In order to retrieve a PDF of a digital mortgage deed
  The deed store must be capable of being searched via deed ID
  so that another service can use the PDF deed

Acceptance Criteria:
  (US153a) A search of the deed store can be made using a single deed ID
  (US153a) When a single deed is found the service must return a PDF of the deed
  (US153a) The service must state when no deed with that deed ID exists

@us153a
Scenario: Retrieve PDF for Valid Deed ID
  Given I create default deed with <1> borrowers
  And the deed id is returned by the Deed API
  When I retrieve a pdf using the deed id
  Then the PDF is returned

@us153a
Scenario: Retrieve PDF for Invalid Deed ID
  Given I create default deed with <1> borrowers
  And the deed id is returned by the Deed API
  When I retrieve a pdf using an incorrect deed id
  Then a status code of "404" is returned
{'fraction_non_alphanumeric': 0.02180376610505451, 'fraction_numerical': 0.019821605550049554, 'mean_word_length': 3.717289719626168, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7228011', 'n_tokens_mistral': 618, 'n_tokens_neox': 559, 'n_words': 362}