Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy of Python Extension API service for functional tests #33

Merged

Conversation

DonJayamanne
Copy link
Contributor

For #28

Tests are slow, still going through what needs to be fixed.
However this addresses a huge chunk of the tests.
As I come across other tests, I'll fix them.

@@ -7,5 +7,4 @@ export interface IInterpreterService {
getInterpreters(resource?: Uri): Promise<PythonEnvironment[]>;
getActiveInterpreter(resource?: Uri): Promise<PythonEnvironment | undefined>;
getInterpreterDetails(pythonPath: string, resource?: Uri): Promise<undefined | PythonEnvironment>;
initialize(): void;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only used in tests.

@@ -560,12 +560,6 @@ suite('DataScience notebook tests', () => {
// Rewire our data we use to search for processes
@injectable()
class EmptyInterpreterService implements IInterpreterService {
public get hasInterpreters(): Promise<boolean> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant code

@DonJayamanne DonJayamanne changed the title Add interpreter service for functional tests Add copy of Python Extension API service for functional tests Sep 14, 2020
@DonJayamanne DonJayamanne merged commit 8fe0dd7 into microsoft:main Sep 14, 2020
@DonJayamanne DonJayamanne deleted the interpreterServiceForFuncTests branch September 14, 2020 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants