Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 committed Jul 20, 2024
1 parent 857628a commit 41e9c17
Showing 1 changed file with 130 additions and 131 deletions.
261 changes: 130 additions & 131 deletions src/test/unittest/inlineValue/pythonInlineValueProvider.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,41 +329,40 @@ suite('Debugging - pythonInlineProvider', () => {
},
];
expect(result).to.deep.equal(expected);

});

test.only('ProvideInlineValues function should return all the vars in the python file using Assignment Expressions', async () => {
customRequestStub.withArgs('variables', sinon.match.any).resolves({
variables: [
{
name: "special variables",
value: "",
type: "",
evaluateName: "special variables",
variablesReference: 5,
name: 'special variables',
value: '',
type: '',
evaluateName: 'special variables',
variablesReference: 5,
},
{
name: "n",
value: "4",
type: "int",
evaluateName: "n",
variablesReference: 0,
name: 'n',
value: '4',
type: 'int',
evaluateName: 'n',
variablesReference: 0,
},
{
name: "some_list",
value: "[1, 2, 3, 7]",
type: "list",
evaluateName: "some_list",
variablesReference: 6,
name: 'some_list',
value: '[1, 2, 3, 7]',
type: 'list',
evaluateName: 'some_list',
variablesReference: 6,
},
{
name: "x",
value: "3",
type: "int",
evaluateName: "x",
variablesReference: 0,
name: 'x',
value: '3',
type: 'int',
evaluateName: 'x',
variablesReference: 0,
},
]
],
});
const file = path.join(WS_ROOT, 'pythonFiles', 'testAssignmentExp.py');
let document = await workspace.openTextDocument(file);
Expand All @@ -375,132 +374,132 @@ suite('Debugging - pythonInlineProvider', () => {
const result = await inlineValueProvider.provideInlineValues(document, viewPort, context);
const expected = [
{
range: {
c: {
c: 0,
e: 0,
},
e: {
c: 0,
e: 9,
},
},
variableName: "some_list",
caseSensitiveLookup: false,
range: {
c: {
c: 0,
e: 0,
},
e: {
c: 0,
e: 9,
},
},
variableName: 'some_list',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 1,
e: 0,
},
e: {
c: 1,
e: 1,
},
},
variableName: "x",
caseSensitiveLookup: false,
range: {
c: {
c: 1,
e: 0,
},
e: {
c: 1,
e: 1,
},
},
variableName: 'x',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 2,
e: 4,
},
e: {
c: 2,
e: 5,
},
},
variableName: "n",
caseSensitiveLookup: false,
range: {
c: {
c: 2,
e: 4,
},
e: {
c: 2,
e: 5,
},
},
variableName: 'n',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 2,
e: 13,
},
e: {
c: 2,
e: 22,
},
},
variableName: "some_list",
caseSensitiveLookup: false,
range: {
c: {
c: 2,
e: 13,
},
e: {
c: 2,
e: 22,
},
},
variableName: 'some_list',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 2,
e: 27,
},
e: {
c: 2,
e: 28,
},
},
variableName: "x",
caseSensitiveLookup: false,
range: {
c: {
c: 2,
e: 27,
},
e: {
c: 2,
e: 28,
},
},
variableName: 'x',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 3,
e: 13,
},
e: {
c: 3,
e: 14,
},
},
variableName: "n",
caseSensitiveLookup: false,
range: {
c: {
c: 3,
e: 13,
},
e: {
c: 3,
e: 14,
},
},
variableName: 'n',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 3,
e: 16,
},
e: {
c: 3,
e: 17,
},
},
variableName: "x",
caseSensitiveLookup: false,
range: {
c: {
c: 3,
e: 16,
},
e: {
c: 3,
e: 17,
},
},
variableName: 'x',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 5,
e: 13,
},
e: {
c: 5,
e: 14,
},
},
variableName: "n",
caseSensitiveLookup: false,
range: {
c: {
c: 5,
e: 13,
},
e: {
c: 5,
e: 14,
},
},
variableName: 'n',
caseSensitiveLookup: false,
},
{
range: {
c: {
c: 5,
e: 16,
},
e: {
c: 5,
e: 17,
},
},
variableName: "x",
caseSensitiveLookup: false,
range: {
c: {
c: 5,
e: 16,
},
e: {
c: 5,
e: 17,
},
},
variableName: 'x',
caseSensitiveLookup: false,
},
]
];
expect(result).to.deep.equal(expected);
});
});

0 comments on commit 41e9c17

Please sign in to comment.