def test_load_default_file_with_yaml(self, temp_dir):
        """Test that `mkdocs.yml` will be loaded when '--config' is not set."""
        with open(os.path.join(temp_dir, 'mkdocs.yaml'), 'w') as config_file:
            config_file.write("site_name: MkDocs Test\n")
        os.mkdir(os.path.join(temp_dir, 'docs'))
        with change_dir(temp_dir):
            cfg = base.load_config(config_file=None)
            self.assertTrue(isinstance(cfg, defaults.MkDocsConfig))
            self.assertEqual(cfg.site_name, 'MkDocs Test')
Test that `mkdocs.yml` will be loaded when '--config' is not set.
mkdocs/tests/config/base_tests.py