@@ -339,96 +339,62 @@ test('TypeAliasType2', () => {
339
339
} ) ;
340
340
341
341
test ( 'TypedDictReadOnly1' , ( ) => {
342
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
343
-
344
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictReadOnly1.py' ] , configOptions ) ;
342
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictReadOnly1.py' ] ) ;
345
343
TestUtils . validateResults ( analysisResults , 4 ) ;
346
344
} ) ;
347
345
348
346
test ( 'TypedDictReadOnly2' , ( ) => {
349
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
350
-
351
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictReadOnly2.py' ] , configOptions ) ;
347
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictReadOnly2.py' ] ) ;
352
348
TestUtils . validateResults ( analysisResults , 17 ) ;
353
349
} ) ;
354
350
355
351
test ( 'TypedDictClosed1' , ( ) => {
356
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
357
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
358
-
359
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed1.py' ] , configOptions ) ;
352
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed1.py' ] ) ;
360
353
TestUtils . validateResults ( analysisResults , 7 ) ;
361
354
} ) ;
362
355
363
356
test ( 'TypedDictClosed2' , ( ) => {
364
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
365
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
366
-
367
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed2.py' ] , configOptions ) ;
357
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed2.py' ] ) ;
368
358
TestUtils . validateResults ( analysisResults , 4 ) ;
369
359
} ) ;
370
360
371
361
test ( 'TypedDictClosed3' , ( ) => {
372
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
373
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
374
-
375
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed3.py' ] , configOptions ) ;
362
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed3.py' ] ) ;
376
363
TestUtils . validateResults ( analysisResults , 10 ) ;
377
364
} ) ;
378
365
379
366
test ( 'TypedDictClosed4' , ( ) => {
380
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
381
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
382
-
383
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed4.py' ] , configOptions ) ;
367
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed4.py' ] ) ;
384
368
TestUtils . validateResults ( analysisResults , 5 ) ;
385
369
} ) ;
386
370
387
371
test ( 'TypedDictClosed5' , ( ) => {
388
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
389
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
390
-
391
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed5.py' ] , configOptions ) ;
372
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed5.py' ] ) ;
392
373
TestUtils . validateResults ( analysisResults , 1 ) ;
393
374
} ) ;
394
375
395
376
test ( 'TypedDictClosed6' , ( ) => {
396
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
397
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
398
-
399
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed6.py' ] , configOptions ) ;
377
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed6.py' ] ) ;
400
378
TestUtils . validateResults ( analysisResults , 8 ) ;
401
379
} ) ;
402
380
403
381
test ( 'TypedDictClosed7' , ( ) => {
404
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
405
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
406
-
407
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed7.py' ] , configOptions ) ;
382
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed7.py' ] ) ;
408
383
TestUtils . validateResults ( analysisResults , 6 ) ;
409
384
} ) ;
410
385
411
386
test ( 'TypedDictClosed8' , ( ) => {
412
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
413
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
414
-
415
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed8.py' ] , configOptions ) ;
387
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed8.py' ] ) ;
416
388
TestUtils . validateResults ( analysisResults , 0 ) ;
417
389
} ) ;
418
390
419
391
test ( 'TypedDictClosed9' , ( ) => {
420
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
421
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
422
-
423
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed9.py' ] , configOptions ) ;
392
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed9.py' ] ) ;
424
393
TestUtils . validateResults ( analysisResults , 1 ) ;
425
394
} ) ;
426
395
427
396
test ( 'TypedDictClosed10' , ( ) => {
428
- const configOptions = new ConfigOptions ( Uri . empty ( ) ) ;
429
- configOptions . diagnosticRuleSet . enableExperimentalFeatures = true ;
430
-
431
- const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed10.py' ] , configOptions ) ;
397
+ const analysisResults = TestUtils . typeAnalyzeSampleFiles ( [ 'typedDictClosed10.py' ] ) ;
432
398
TestUtils . validateResults ( analysisResults , 0 ) ;
433
399
} ) ;
434
400
0 commit comments