Skip to content

Commit aedc11b

Browse files
committed
refactor: Simplify pythonInstructions by removing unused parameters
1 parent c468b36 commit aedc11b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/tools/automate-utils/fetch-screenshots.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ async function convertUrlsToBase64(
5959
): Promise<Array<{ url: string; base64: string }>> {
6060
const screenshots = await Promise.all(
6161
urls.map(async (url) => {
62-
const response = await apiClient.get({
63-
url,
64-
responseType: "arraybuffer"
62+
const response = await apiClient.get({
63+
url,
64+
responseType: "arraybuffer",
6565
});
6666
// Axios returns response.data as a Buffer for binary data
6767
const base64 = Buffer.from(response.data).toString("base64");

src/tools/sdk-utils/bstack/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ConfigMapping } from "../common/types.js";
44
* ---------- PYTHON INSTRUCTIONS ----------
55
*/
66

7-
export const pythonInstructions = (username: string, accessKey: string) => {
7+
export const pythonInstructions = () => {
88
const setup = `
99
---STEP---
1010
@@ -32,7 +32,7 @@ browserstack-sdk pytest <path-to-test-directory>
3232
};
3333

3434
export const generatePythonFrameworkInstructions =
35-
(framework: string) => (username: string, accessKey: string) => {
35+
(framework: string) => () => {
3636
const setup = `
3737
---STEP---
3838
@@ -646,4 +646,4 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
646646
cypress: { instructions: cypressInstructions },
647647
},
648648
},
649-
};
649+
};

0 commit comments

Comments
 (0)