https://github.com/lightsofapollo/bugzilla-fixtures
Bugzilla fixtures for shepherd tests
https://github.com/lightsofapollo/bugzilla-fixtures
Last synced: 8 months ago
JSON representation
Bugzilla fixtures for shepherd tests
- Host: GitHub
- URL: https://github.com/lightsofapollo/bugzilla-fixtures
- Owner: lightsofapollo
- Created: 2013-11-04T23:09:17.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-19T22:23:55.000Z (over 12 years ago)
- Last Synced: 2024-12-27T15:12:52.041Z (over 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bugzilla-fixtures
=================
Bugzilla fixtures for shepherd tests
## Factories
Factories are based on object-factory... The top level module exposes
the following factories:
- Bug
- Flag
- Attachment
- SuggestedReviewer
All factories follow the design in the [rest bugzilla
api](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Server/REST.html).
## Usage
```js
// single fixture
var Bug = require('bugzilla-fixtures/bug');
var myBug = Bug.create();
```
All the properties on the bug can be overridden and overrides are done
with a deep merge.
To best figure out how to use the factories you should actually read the
factory files and maybe use the object viewer (see `make test` for
output).