-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed issue with tests faililng due to not finding config
- Loading branch information
Showing
7 changed files
with
29 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ use rand::rngs::StdRng; | |
use rand::SeedableRng; | ||
use lazy_static::lazy_static; | ||
|
||
use sciflow::lib::project::Project; | ||
use sciflow::lib::data::StatusEntry; | ||
use scidataflow::lib::project::Project; | ||
use scidataflow::lib::data::StatusEntry; | ||
|
||
pub fn make_mock_fixtures() -> Vec<DataFileFixture> { | ||
let files = vec![ | ||
|
@@ -190,6 +190,11 @@ pub fn setup(do_add: bool) -> TestFixture { | |
let _ = test_env.build_project_directories(data_fixtures); | ||
|
||
// initializes sciflow in the test environment | ||
let current_dir = env::current_dir().unwrap(); | ||
info!("temp_dir: {:?}, current directory: {:?}", test_env.temp_dir, current_dir); | ||
let _ = Project::set_config(&Some("Joan B. Scientist".to_string()), | ||
&Some("[email protected]".to_string()), | ||
&Some("UC Berkeley".to_string())); | ||
let _ = Project::init(Some(project_name)); | ||
let mut project = Project::new().expect("setting up TestFixture failed"); | ||
|
||
|
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