-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document deprecation and add test for smooth update
Test that when you generate a package in the previous main and then update to the HEAD using only the required data and defaults, that it is the same as generating the package in the HEAD. Warning: the interactions with other changes is not clear yet. Closes #428
- Loading branch information
1 parent
d9e9ade
commit 38a78d6
Showing
6 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
Fake data for testing | ||
- `Debug.Data`: NamedTuple of Dictionaries with default data | ||
- `Debug.Data.minimum_defaults`: Required data if you use `defaults = true` | ||
- `Debug.Data.required`: Required data if you use `defaults = true` | ||
- `Debug.Data.strategy_minimum`: Required data for strategy minimum, no defaults. | ||
- `Debug.Data.strategy_recommended`: Required data for strategy recommended, no defaults. | ||
- `Debug.Data.strategy_ask`: Required data for strategy ask, no defaults. | ||
|
@@ -12,16 +12,21 @@ module Data | |
using Random: MersenneTwister | ||
using UUIDs: uuid4 | ||
|
||
const minimum_defaults = Dict( | ||
"PackageName" => "FakePkg", | ||
"PackageUUID" => string(uuid4(MersenneTwister(123))), | ||
"PackageOwner" => "bestietemplate", | ||
"AuthorName" => "Bestie Template", | ||
"AuthorEmail" => "[email protected]", | ||
const deprecated = Dict() | ||
|
||
const required = merge( | ||
Dict( | ||
"PackageName" => "FakePkg", | ||
"PackageUUID" => string(uuid4(MersenneTwister(123))), | ||
"PackageOwner" => "bestietemplate", | ||
"AuthorName" => "Bestie Template", | ||
"AuthorEmail" => "[email protected]", | ||
), | ||
deprecated, | ||
) | ||
|
||
const strategy_minimum = merge( | ||
minimum_defaults, | ||
required, | ||
Dict( | ||
"JuliaMinVersion" => "1.6", | ||
"License" => "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters