f2823cc5ad25abbe33e76c3555b490fdfbd9c902,tests/test_dependencies.py,,test_gather_sources_and_dependencies,#,135

Before Change


    assert isinstance(sources, set)
    assert isinstance(deps, set)
    assert main == Source.create("tests/dependency_example.py")
    expected_sources = {
        Source.create("tests/__init__.py"),
        Source.create("tests/dependency_example.py"),
        Source.create("tests/foo/__init__.py"),
        Source.create("tests/foo/bar.py")
    }
    assert sources == expected_sources

    assert PackageDependency.create(pytest) in deps
    assert PackageDependency.create(mock) in deps

After Change


    assert isinstance(sources, set)
    assert isinstance(deps, set)
    assert main == Source.create(os.path.join(TEST_DIRECTORY, "dependency_example.py"))
    expected_sources = {
        Source.create(os.path.join(TEST_DIRECTORY, "__init__.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "dependency_example.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "foo", "__init__.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "foo", "bar.py"))
    }
    assert sources == expected_sources

    assert PackageDependency.create(pytest) in deps
    assert PackageDependency.create(mock) in deps
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: IDSIA/sacred
Commit Name: f2823cc5ad25abbe33e76c3555b490fdfbd9c902
Time: 2019-07-03
Author: r.sjogren89@gmail.com
File Name: tests/test_dependencies.py
Class Name:
Method Name: test_gather_sources_and_dependencies


Project Name: IDSIA/sacred
Commit Name: f2823cc5ad25abbe33e76c3555b490fdfbd9c902
Time: 2019-07-03
Author: r.sjogren89@gmail.com
File Name: tests/test_dependencies.py
Class Name:
Method Name: test_custom_base_dir


Project Name: comic/grand-challenge.org
Commit Name: a8eab99a0476060c27ae890071a5e17c01531ee7
Time: 2020-01-27
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth


Project Name: pantsbuild/pants
Commit Name: 5bfd6cdef169103f539a092920f0004bfa5fb6f4
Time: 2018-12-06
Author: stuhood@twitter.com
File Name: src/python/pants/option/options_bootstrapper.py
Class Name: OptionsBootstrapper
Method Name: get_full_options