def test_load_colab_apps_with_plugins_d_directory(self, os_getenv):
        sys.path.insert(0, os_getenv.return_value)
        colab_apps = load_colab_apps()

        self.assertIn('gitlab', colab_apps['COLAB_APPS'])
        self.assertIn('noosfero', colab_apps['COLAB_APPS'])
        sys.path.remove(os_getenv.return_value)

        self.assertNotIn(os_getenv.return_value, sys.path)