12345678910111213141516171819 |
- use dadk_config::{self, manifest::DadkManifestFile};
- use test_base::{
- dadk_config::DadkConfigTestContext,
- test_context::{self as test_context, test_context},
- };
- const DADK_MANIFEST_FILE_NAME: &str = "dadk-manifest.toml";
- #[test_context(DadkConfigTestContext)]
- #[test]
- fn test_load_dadk_manifest_template(ctx: &DadkConfigTestContext) {
- let manifest_path = ctx.templates_dir().join(DADK_MANIFEST_FILE_NAME);
- assert_eq!(manifest_path.exists(), true);
- assert_eq!(manifest_path.is_file(), true);
- let manifest = DadkManifestFile::load(&manifest_path).expect("Failed to load manifest");
-
- assert_eq!(manifest.used_default, false);
- }
|