Skip to content

Commit

Permalink
chore: drop unused Pipfile check
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Jun 11, 2021
1 parent 25acaff commit 4cfa321
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions packages/snyk-fix/src/plugins/python/get-handler-type.ts
Expand Up @@ -22,7 +22,3 @@ export function getHandlerType(
export function isRequirementsTxtManifest(targetFile: string): boolean {
return targetFile.endsWith('.txt');
}

export function isPipfileManifest(targetFile: string): boolean {
return targetFile.endsWith('Pipfile') || targetFile.endsWith('Pipfile.lock');
}
@@ -1,6 +1,5 @@
import {
getHandlerType,
isPipfileManifest,
isRequirementsTxtManifest,
} from '../../../../../../src/plugins/python/get-handler-type';
import { SUPPORTED_HANDLER_TYPES } from '../../../../../../src/plugins/python/supported-handler-types';
Expand Down Expand Up @@ -43,16 +42,3 @@ describe('isRequirementsTxtManifest', () => {
expect(isRequirementsTxtManifest('package.json')).toBeFalsy();
});
});

describe('isPipfileManifest', () => {
it('dev.txt is NOT a Pipfile file', () => {
expect(isPipfileManifest('dev.txt')).toBeFalsy();
});
it('path/to/Pipfile is Pipfile file', () => {
expect(isPipfileManifest('path/to/Pipfile')).toBeTruthy();
});

it('path/to/Pipfile.lock is Pipfile file', () => {
expect(isPipfileManifest('lib/Pipfile.lock')).toBeTruthy();
});
});

0 comments on commit 4cfa321

Please sign in to comment.