e3d577b5595af3e1c9a05d3be84dbdf1a7c4aa20,nilearn/datasets/tests/test_atlas.py,,test_fetch_atlas_aal,#Any#Any#,379
Before Change
def test_fetch_atlas_aal(tmp_path, request_mocker):
ho_dir = str(tmp_path / "aal_SPM12" / "aal" / "atlas")
os.makedirs(ho_dir)
with open(os.path.join(ho_dir, "AAL.xml"), "w") as xml_file:
xml_file.write("<?xml version="1.0" encoding="us-ascii"?> "
"<metadata>"
"</metadata>")
After Change
def test_fetch_atlas_aal(tmp_path, request_mocker):
metadata = (b"<?xml version="1.0" encoding="us-ascii"?>"
b"<metadata></metadata>")
archive_root = Path("aal", "atlas")
aal_data = dict_to_archive(
{archive_root / "AAL.xml": metadata, archive_root / "AAL.nii": ""})
request_mocker.url_mapping["*AAL_files*"] = aal_data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: nilearn/nilearn
Commit Name: e3d577b5595af3e1c9a05d3be84dbdf1a7c4aa20
Time: 2020-07-29
Author: jerome@dockes.org
File Name: nilearn/datasets/tests/test_atlas.py
Class Name:
Method Name: test_fetch_atlas_aal
Project Name: silvandeleemput/memcnn
Commit Name: a07d352173f3590aef91348ca961cd3922f4b5b5
Time: 2019-12-08
Author: silvandeleemput@gmail.com
File Name: memcnn/trainers/tests/test_train.py
Class Name:
Method Name: test_run_experiment
Project Name: pantsbuild/pants
Commit Name: f2a35263aacacf10e1b2d622cd39c7c66ea39acb
Time: 2019-11-25
Author: ericarellano@me.com
File Name: src/python/pants/fs/fs_test.py
Class Name: WorkspaceInConsoleRuleTest
Method Name: test