# Potential Grading or Unittest Evaluation issue in Building a Travel & Flight Optimization app C1-M3-Assignment

**URL:** <https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284>\
**Category:** Introduction to Generative AI for Software Develop\
**Tags:** week-module-3, coursera-platform\
**Created:** [January 17, 2026, 10:12am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284 "2026-01-17T10:12:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![subigyapanta](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@subigyapanta](https://community.deeplearning.ai/u/subigyapanta)\
**Post date:** [January 17, 2026, 10:12am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/1 "2026-01-17T10:12:10Z")

</div>

**My first submission with all unittests passing received 73.68%. However, after I updated the changes according to the errors raised, I got 100% in submission, but some unittests fail.**

Screenshot of 2nd submission with 100% grade received, which didn’t pass all the unittests:

 ![Screenshot 2569-01-17 at 16.15.17](https://global.discourse-cdn.com/dlai/original/3X/f/1/f145d0a861b5654d1afd67741149c3561c9347a0.png)

Screenshot of 1st submission with 73.68% grade received, which passed all unittests:

 ![Screenshot 2569-01-17 at 16.15.29](https://global.discourse-cdn.com/dlai/original/3X/7/5/755fe9ebb951947888abf4e2f1f4b0c81be716ab.png)

As you can see, there is some disconnect between submissions grading process and unittests.

EDIT:  
To help debug the problem. Here is what happens:

**Case 1: When all unittests pass and I receive ~74% grade:**  
**Unittests** : No error notice. All Passed  
**Submission Grader** : Gives a notice something similar to, “For the tour to be valid it should return to starting point.”

After I FIX the code so that it returns to the starting point, we get case 2

**Case 2: Many unittests fail. BUT I receive 100% grade.**  
**Unittests** : Gives error notice similar to, “Invalid tour because tour has duplicate node”. But it has duplicate node because of the FIX i.e, it is returning to the starting point.  
**Submission Grader** : No error notice. 100% grade

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [January 17, 2026, 11:18am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/2 "2026-01-17T11:18:46Z")

</div>

You passed the grader tests once and then not? The unittests in the lab walkthrough are not the same as the graders tests!

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [January 17, 2026, 4:51pm UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/3 "2026-01-17T16:51:36Z")

</div>

> [@subigyapanta](#):
>
> there is some disconnect between submissions grading process and unittests.

You are correct. The grader uses entirely different tests than those used in the notebook.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [January 17, 2026, 5:10pm UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/4 "2026-01-17T17:10:16Z")

</div>

Yes, that is the pattern in all the courses, but it is a bit unusual to see a case in which you pass the grader, but fail the unit tests. The other way around is an everyday occurrence.

One other thing to look out for here is inconsistencies in the runtime state of the notebook. You can’t assume that clicking “Submit” to the grader will do a “Save” first. So it’s possible that you saved a working version of the notebook and then made a change locally that broke the unit tests and then clicked “Submit” without doing a “Save” first. So the grader is seeing a different version of the code than you are actually running.

If you want to make sure that WYSIWYG, try this sequence:

```auto
Kernel -> Restart and Clear Output
Cell -> Run All

```

Now look through and make sure all the unit tests pass. If they do, then do this:

```auto
Kernel -> Restart and Clear Output
Save
Submit

```

The real point there is the “Save”, but the other point is that the grader does not need to see your generated output and doing the “Clear” before “Submit” makes things as efficient as possible (minimizes the data sent to the grader).

---

<div class="post-metadata">

**Author:** ![FerGM](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/fergm/32/123158_2.png) [@FerGM](https://community.deeplearning.ai/u/FerGM)\
**Post date:** [January 18, 2026, 1:38am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/5 "2026-01-18T01:38:48Z")

</div>

Same situation. For some reason if you pass the tests, you won’t pass the grading process, and viceversa.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [January 18, 2026, 1:59am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/6 "2026-01-18T01:59:17Z")

</div>

Sounds like we need some help from the course staff here. @lucas.coutinho are you able take a look or weigh in and let us know if this is a known problem? Thanks!

---

<div class="post-metadata">

**Author:** ![subigyapanta](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@subigyapanta](https://community.deeplearning.ai/u/subigyapanta)\
**Post date:** [January 18, 2026, 5:54am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/7 "2026-01-18T05:54:26Z")

</div>

I passed it both times.

Weird thing is,

when I passed with ~74% grade. All unittests passed.  
I fixed the source code then I passed with 100% grade, However, unittests returned error.

---

<div class="post-metadata">

**Author:** ![subigyapanta](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@subigyapanta](https://community.deeplearning.ai/u/subigyapanta)\
**Post date:** [January 18, 2026, 6:03am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/8 "2026-01-18T06:03:28Z")

</div>

To help debug the problem. Here is what happens:

**Case 1: When all unittests pass and I receive ~74% grade:**  
**Unittests** : No error notice. All Passed  
**Submission Grader** : Gives a notice something similar to, “For the tour to be valid it should return to starting point.”

After I FIX the code so that it returns to the starting point, we get case 2

**Case 2: Many unittests fail. BUT I receive 100% grade.**  
**Unittests** : Gives error notice similar to, “Invalid tour because tour has duplicate node”. But it has duplicate node because of the FIX i.e, it is returning to the starting point.  
**Submission Grader** : No error notice. 100% grade

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [January 18, 2026, 6:49am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/9 "2026-01-18T06:49:55Z")

</div>

It is strange, lets see what the QA staff tagged here would make of this!

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [January 18, 2026, 8:25am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/10 "2026-01-18T08:25:43Z")

</div>

Is it possible that you have written the code in two different ways, to pass either set of tests, but you have not yet written code that will pass both sets of tests?

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [January 19, 2026, 5:08am UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/11 "2026-01-19T05:08:49Z")

</div>

This can also be possible, quite right!

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [January 19, 2026, 6:53pm UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/13 "2026-01-19T18:53:30Z")

</div>

Apparently there was a change to the grader for this course two days ago. Others have reported there is a note in the assignment that regards changes on 1/15/2026.

Perhaps that’s also a factor here.

---

<div class="post-metadata">

**Author:** ![lucas.coutinho](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lucas.coutinho/32/155465_2.png) [@lucas.coutinho](https://community.deeplearning.ai/u/lucas.coutinho)\
**Post date:** [January 22, 2026, 2:17pm UTC](https://community.deeplearning.ai/t/potential-grading-or-unittest-evaluation-issue-in-building-a-travel-flight-optimization-app-c1-m3-assignment/887284/14 "2026-01-22T14:17:33Z")

</div>

Hi all,

We indeed updated this assignment recently based on learner feedback. Despite our testing, some inconsistencies may still occur.

Could those of you experiencing problems **send me your solutions via DM?** I will review them to improve the grader and unit tests accordingly.

Cheers,  
Lucas
