summaryrefslogtreecommitdiff
path: root/tests/pipeline
Commit message (Collapse)AuthorAgeFilesLines
* tests/pipeline/preflight-error: Fixing typo in error string formattingTristan Van Berkom2018-04-231-1/+1
|
* source.py, element.py, _pipeline.py: Streamling preflighting.Tristan Van Berkom2018-04-161-1/+1
| | | | | | | | | | | Instead of having the pipeline preflight all sources separately from elements, have the element preflight it's sources. This is in order to simplify the shared code path for the pipeline and the loader to use for instantiating elements. Also updated tests to expect the new ElementError and SourceError instead of the PipelineError which was raised for preflighting before.
* tests/pipeline/load.py: Testing source without load_ref() implementationTristan Van Berkom2018-03-204-0/+83
| | | | | | Test that we have no error when loading a project that doesnt use project.refs, and that we get the expected graceful failure when attempting to use project.refs with a Source which doesnt support it.
* tests/pipeline/preflight.py: Added test to ensure graceful exit at preflight ↵fix-preflight-errorsTristan Van Berkom2018-01-065-0/+69
| | | | error time
* tests/pipeline/load.py: Removing unused tmpdir fixture from hereTristan Van Berkom2018-01-061-7/+7
|
* Fix testsTristan Maat2017-12-134-1/+12
|
* Remove unused imports in test filesGökçen Nurlu2017-12-071-6/+0
|
* tests/pipeline/load.py: Enhanced and added test cases for exceptionsTristan Van Berkom2017-11-1812-34/+73
| | | | | | | | | Make this into a single paramaterized test case and test a few more combinations: o Ensure that excepting works with multiple targets in play o Ensure that multiple exceptions succeed in excepting the commonly depended elements which are otherwise referred to by the target
* load.py: Add test to check intersection exceptionsTristan Maat2017-11-182-0/+24
|
* Fix testsTristan Maat2017-11-181-11/+0
|
* load.py: Migrate to new test styleTristan Maat2017-11-101-89/+64
|
* Refactor: Move context.py -> _context.pyTristan Van Berkom2017-11-081-1/+2
| | | | | | | | | | Consequently: o Changed Plugin.get_context() to a private Plugin._get_context() accessor. o Updated anything which imports Context to do so from private _context module o Updated docs to exclude the now private Context
* refactoring: Made Project option privateTristan Van Berkom2017-11-061-1/+2
| | | | | | | | | | | | | | This required adding two new APIs to make up for it on the Source o get_project_directory() Added here because elements should not be accessing external resources, Sources needed for local files and GPG keys and such o translate_url() Used by sources to mish-mash the project aliases and create real urls.
* Updating all test cases for the removal of architecture conditionals and optionsTristan Van Berkom2017-11-061-1/+1
|
* Adjust tests to new APITristan Maat2017-11-041-21/+21
|
* Clean old Platform.get_platform referencesTristan Maat2017-11-011-1/+1
|
* Updated test cases for internal API changes stemming from project optionsTristan Van Berkom2017-10-101-2/+2
|
* Updating test cases to construct the project/loader properly again.Tristan Van Berkom2017-10-081-8/+8
| | | | | This had changed when we added project variants and had to split up the loading steps a bit, now all is back to normal without variants.
* Fix tests for other platformsTristan Maat2017-09-281-0/+8
|
* Add platform factoriesTristan Maat2017-09-281-0/+2
|
* Add --except testsTristan Maat2017-06-2010-0/+52
|
* Refactor: Untangling element/source namesTristan Van Berkom2017-03-181-16/+16
| | | | | | | | | | | | | | | | | | | | | | | o The metaelements and metasources now carry the name, the loader resolves source names now. o Element/Source factories dont require a name anymore as they are already in the meta objects o Pipeline no longer composes names o Element.name is now the original project relative filename, this allows plugins to identify that name in their dependencies, allowing one to express configuration which identifies elements by the same name that the user used in the dependencies. o Removed plugin._get_display_name() in favor of the plugin.name o Added Element.normal_name, for the cases where we need to have a normalized name for creating directories and log files o Updated frontend and test cases and all callers to use the new naming
* Fixed tests for new Project() constructor argument.Tristan Van Berkom2017-02-021-1/+1
|
* Renaming root project configuration file from project.yaml to project.conf ↵Andrew Leeming2017-01-042-0/+0
| | | | for extra clarity
* Added tests with pipeline to check element iteration and scopeTristan Van Berkom2016-12-319-1/+158
|
* Adding first pipeline testsTristan Van Berkom2016-12-313-0/+42