localgovdrupal/localgov_publications_importer_test_data

There is no license information available for the latest version (1.x-dev) of this package.

Test data for localgovdrupal/localgov_publications_importer

Installs: 220

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:drupal-module

pkg:composer/localgovdrupal/localgov_publications_importer_test_data

1.x-dev 2025-10-23 08:56 UTC

This package is auto-updated.

Last update: 2025-10-23 08:57:07 UTC


README

This is a collection of PDF files that are used to test localgovdrupal/localgov_publications_importer.

These files are placed in a separate project so the publications importer can be installed without including the test data.

Files are stored under data, and then a directory named for the council that provided the PDF.

Each file must be added to the manifest.json file in data, which provides file metadata that's used for testing.

For example, each object in the JSON represents one file:

{
  "filename": "southwark/HMO licensing conditions_1.pdf",
  "title": "Private Rented Sector Property Licensing",
  "page_count": 10,
  "links": {
    "2": [
      "<a href=\"https://www.gov.uk/guidance/domestic-private-rented-property-minimum-energy-efficiency-standard-landlord-guidance\">Energy \nPerformance Certificate (EPC) Rating of less than ā€˜E’</a>"
    ]
  }
}
  • filename is the path to the file.
  • title is the title stored in the file.
  • page_count is how many pages the file has.
  • links is optional. This stores an object mapping of page number to an array of links. The tests will ensure that each link in the array can be found in the content of the given page.